mirror of
https://github.com/HelloZeroNet/ZeroNet.git
synced 2023-12-14 04:33:03 +01:00
Update to latest bitcoinrpc
This commit is contained in:
parent
faa2c3e6ce
commit
298191a6ef
1 changed files with 2 additions and 3 deletions
|
@ -137,9 +137,8 @@ class AuthServiceProxy(object):
|
|||
self.__conn.sock.settimeout(self.__timeout)
|
||||
|
||||
response = self._get_response()
|
||||
if 'error' in response:
|
||||
if response['error'] is not None:
|
||||
raise JSONRPCException(response['error'])
|
||||
if response.get('error') is not None:
|
||||
raise JSONRPCException(response['error'])
|
||||
elif 'result' not in response:
|
||||
raise JSONRPCException({
|
||||
'code': -343, 'message': 'missing JSON-RPC result'})
|
||||
|
|
Loading…
Reference in a new issue