From 7464e4005ce1e9f8b3bc03d9c9994016d8aeb7cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 21 Dec 2024 18:58:50 +0100 Subject: [PATCH] Keep raising HTTPException in with_pool wrapper This was removed by mistake in c8ebaa541e21 Closes #13771 --- trytond/trytond/protocols/wrappers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trytond/trytond/protocols/wrappers.py b/trytond/trytond/protocols/wrappers.py index e6c68a4b02..8f232a87c8 100644 --- a/trytond/trytond/protocols/wrappers.py +++ b/trytond/trytond/protocols/wrappers.py @@ -203,6 +203,8 @@ def with_pool(func): raise else: abort(HTTPStatus.BAD_REQUEST, e) + except exceptions.HTTPException: + raise except Exception as e: if request.rpc_method: raise