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