From 9535a68a8399022e9e0b0208a338b59ed6dfe497 Mon Sep 17 00:00:00 2001 From: Liquid369 Date: Mon, 28 Oct 2024 15:55:01 -0500 Subject: [PATCH] Set dictionary for status/response --- test/functional/test_framework/authproxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/test_framework/authproxy.py b/test/functional/test_framework/authproxy.py index 5fe519b3e1d7a2..5e5b93ef97043e 100644 --- a/test/functional/test_framework/authproxy.py +++ b/test/functional/test_framework/authproxy.py @@ -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'}) @@ -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'})