summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Vu-Brugier <cvubrugier@yahoo.fr>2013-10-12 18:07:42 +0200
committerChristophe Vu-Brugier <cvubrugier@yahoo.fr>2013-10-12 18:08:09 +0200
commitd069ec50393430a67375301230fabd7ea73f3b37 (patch)
tree970fe6c687f69e5368008ff55fcef48eae8e0adf
parent2324406c97ff478d48ba6839549aae67ffb9a886 (diff)
downloadtargetcli-d069ec50393430a67375301230fabd7ea73f3b37.tar.gz
Make except clause compatible with Python 3 in scripts/targetcli
Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
-rwxr-xr-xscripts/targetcli2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/targetcli b/scripts/targetcli
index e241efa..a334d11 100755
--- a/scripts/targetcli
+++ b/scripts/targetcli
@@ -62,7 +62,7 @@ def main():
try:
root_node.refresh()
- except Exception, error:
+ except Exception as error:
shell.con.display(shell.con.render_text(str(error), 'red'))
if not is_root:
shell.con.display(shell.con.render_text("Retry as root.", 'red'))