Check available balance before sending xmr bid

This commit is contained in:
tecnovert
2022-01-01 22:55:39 +02:00
parent 65951220b8
commit 1476ad3cec
5 changed files with 29 additions and 9 deletions

View File

@@ -107,7 +107,7 @@ def callrpc(rpc_port, auth, method, params=[], wallet=None, host='127.0.0.1'):
r = json.loads(v.decode('utf-8'))
except Exception as ex:
traceback.print_exc()
raise ValueError('RPC Server Error')
raise ValueError('RPC Server Error ' + str(ex))
if 'error' in r and r['error'] is not None:
raise ValueError('RPC error ' + str(r['error']))