console: fix syntax for python3

This commit is contained in:
moneromooo-monero 2021-01-18 22:23:34 +00:00
parent cb70ae9450
commit c26cca6f14
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 2 deletions

View File

@ -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: