aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-02-16 11:43:02 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-02-16 11:43:02 -0500
commitff5da7111c2a842b45d53e16064a51636f510b1f (patch)
tree19b0df97edfb6faef264c97238291dbf7672c0b9
parentMerge pull request #7319 (diff)
parentconsole: fix syntax for python3 (diff)
downloadmonero-ff5da7111c2a842b45d53e16064a51636f510b1f.tar.xz
Merge pull request #7325
c26cca6 console: fix syntax for python3 (moneromooo-monero)
-rwxr-xr-xutils/python-rpc/console.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/python-rpc/console.py b/utils/python-rpc/console.py
index 57a04528b..c94e07eab 100755
--- a/utils/python-rpc/console.py
+++ b/utils/python-rpc/console.py
@@ -29,7 +29,7 @@ for n in range(1, len(sys.argv)):
raise Exception(USAGE)
if port <= 0 or port > 65535:
raise Exception(USAGE)
- except Exception, e:
+ except Exception as e:
print('Error: ' + str(e))
raise Exception(USAGE)
@@ -49,7 +49,7 @@ for n in range(1, len(sys.argv)):
}
try:
res = rpc.send_json_rpc_request(get_version)
- except Exception, e:
+ except Exception as e:
raise Exception('Failed to call version RPC: ' + str(e))
if 'version' not in res: