Skip to content

Commit

Permalink
Set dictionary for status/response
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquid369 committed Oct 28, 2024
1 parent 70466c8 commit 9535a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/test_framework/authproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def __call__(self, *args, **argsn):
response, status = self._request('POST', self.__url.path, postdata.encode('utf-8'))

if response.get('error') is not None:
raise JSONRPCException(response['error'], status)
raise JSONRPCException({'error': response['error'], 'status': status})
elif 'result' not in response:
raise JSONRPCException({
'code': -343, 'message': 'missing JSON-RPC result'})
Expand All @@ -152,7 +152,7 @@ def __call__(self, *args, **argsn):
raise JSONRPCException({
'code': -342, 'message': 'non-200 HTTP status code'})
if 'error' in response:
raise JSONRPCException(response['error'], status)
raise JSONRPCException({'error': response['error'], 'status': status})
elif 'result' not in response:
raise JSONRPCException({
'code': -343, 'message': 'missing JSON-RPC 2.0 result and error'})
Expand Down

0 comments on commit 9535a68

Please sign in to comment.