Merge pull request #413 from TheNain38/patch-1

Update to latest bitcoinrpc
This commit is contained in:
ZeroNet 2016-04-09 14:52:54 +02:00
commit e94fdda567

View file

@ -137,8 +137,7 @@ class AuthServiceProxy(object):
self.__conn.sock.settimeout(self.__timeout) self.__conn.sock.settimeout(self.__timeout)
response = self._get_response() response = self._get_response()
if 'error' in response: if response.get('error') is not None:
if response['error'] is not None:
raise JSONRPCException(response['error']) raise JSONRPCException(response['error'])
elif 'result' not in response: elif 'result' not in response:
raise JSONRPCException({ raise JSONRPCException({