From e9c214e303822fbe42cf546fa5cb4a4126a8779b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 14 Apr 2024 11:07:33 +0200 Subject: [PATCH] Always raise RPCException in RPCExecute So when calling RPCExecute without processing exception, all exceptions can be catch with RPCException. Closes #12874 (grafted from 372dbf53977e872ae62dbc8d6ce5bdc3bcacec69) --HG-- branch : 7.0 --- tryton/tryton/common/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/tryton/common/common.py b/tryton/tryton/common/common.py index 5c7a53e760..7aa9f236d2 100644 --- a/tryton/tryton/common/common.py +++ b/tryton/tryton/common/common.py @@ -1254,7 +1254,7 @@ class RPCProgress(object): def return_(): if self.exception: - raise self.exception + raise RPCException(self.exception) else: return self.res