mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 15:32:24 +00:00
Merge pull request #7325
c26cca6
console: fix syntax for python3 (moneromooo-monero)
This commit is contained in:
commit
ff5da7111c
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ for n in range(1, len(sys.argv)):
|
||||||
raise Exception(USAGE)
|
raise Exception(USAGE)
|
||||||
if port <= 0 or port > 65535:
|
if port <= 0 or port > 65535:
|
||||||
raise Exception(USAGE)
|
raise Exception(USAGE)
|
||||||
except Exception, e:
|
except Exception as e:
|
||||||
print('Error: ' + str(e))
|
print('Error: ' + str(e))
|
||||||
raise Exception(USAGE)
|
raise Exception(USAGE)
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ for n in range(1, len(sys.argv)):
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
res = rpc.send_json_rpc_request(get_version)
|
res = rpc.send_json_rpc_request(get_version)
|
||||||
except Exception, e:
|
except Exception as e:
|
||||||
raise Exception('Failed to call version RPC: ' + str(e))
|
raise Exception('Failed to call version RPC: ' + str(e))
|
||||||
|
|
||||||
if 'version' not in res:
|
if 'version' not in res:
|
||||||
|
|
Loading…
Reference in a new issue