diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2021-01-18 22:23:34 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2021-01-18 22:23:34 +0000 |
commit | c26cca6f14f4822e8f41df204ccaef0dd7da5d46 (patch) | |
tree | 4cbcee3e013fe46aa92651dcef9a20b41a0c42a5 /utils | |
parent | Merge pull request #7260 (diff) | |
download | monero-c26cca6f14f4822e8f41df204ccaef0dd7da5d46.tar.xz |
console: fix syntax for python3
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/python-rpc/console.py | 4 |
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: |