From 298191a6ef5b0cf07b99f17a81fb2b66ece7f6a8 Mon Sep 17 00:00:00 2001 From: TheNain38 Date: Fri, 8 Apr 2016 11:47:39 +0200 Subject: [PATCH] Update to latest bitcoinrpc --- plugins/disabled-Zeroname-local/bitcoinrpc/authproxy.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/disabled-Zeroname-local/bitcoinrpc/authproxy.py b/plugins/disabled-Zeroname-local/bitcoinrpc/authproxy.py index 6d84fd33..52cdb107 100644 --- a/plugins/disabled-Zeroname-local/bitcoinrpc/authproxy.py +++ b/plugins/disabled-Zeroname-local/bitcoinrpc/authproxy.py @@ -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'})