From f42226d526ebb3eb9217e738108e4f8148a1b069 Mon Sep 17 00:00:00 2001 From: Hodlinator <172445034+hodlinator@users.noreply.github.com> Date: Thu, 4 Jun 2026 10:22:22 +0200 Subject: [PATCH] qa: Silence socket.timeout exception when substituting it for a JSONRPCException This prevents "During handling of the above exception, another exception occurred:" and an extra traceback. --- test/functional/test_framework/authproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/test_framework/authproxy.py b/test/functional/test_framework/authproxy.py index 0377414acce..100372a4a45 100644 --- a/test/functional/test_framework/authproxy.py +++ b/test/functional/test_framework/authproxy.py @@ -169,7 +169,7 @@ class AuthServiceProxy(): 'message': '%r RPC took longer than %f seconds. Consider ' 'using larger timeout for calls that take ' 'longer to return.' % (self._service_name, - self.__conn.timeout)}) + self.__conn.timeout)}) from None if http_response is None: raise JSONRPCException({ 'code': -342, 'message': 'missing HTTP response from server'})