Skip to content

Commit 9535a68

Browse files
committed
Set dictionary for status/response
1 parent 70466c8 commit 9535a68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/test_framework/authproxy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def __call__(self, *args, **argsn):
139139
response, status = self._request('POST', self.__url.path, postdata.encode('utf-8'))
140140

141141
if response.get('error') is not None:
142-
raise JSONRPCException(response['error'], status)
142+
raise JSONRPCException({'error': response['error'], 'status': status})
143143
elif 'result' not in response:
144144
raise JSONRPCException({
145145
'code': -343, 'message': 'missing JSON-RPC result'})
@@ -152,7 +152,7 @@ def __call__(self, *args, **argsn):
152152
raise JSONRPCException({
153153
'code': -342, 'message': 'non-200 HTTP status code'})
154154
if 'error' in response:
155-
raise JSONRPCException(response['error'], status)
155+
raise JSONRPCException({'error': response['error'], 'status': status})
156156
elif 'result' not in response:
157157
raise JSONRPCException({
158158
'code': -343, 'message': 'missing JSON-RPC 2.0 result and error'})

0 commit comments

Comments
 (0)