From aa56b367d2d26a5ffb9d48f92e68e052e54be2cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Sun, 8 Sep 2024 17:25:20 +0200 Subject: [PATCH] Raise the original RPCException when handling it in RPCProgress Closes #13385 --- tryton/tryton/common/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tryton/tryton/common/common.py b/tryton/tryton/common/common.py index b36ea9ab98..17e0082e48 100644 --- a/tryton/tryton/common/common.py +++ b/tryton/tryton/common/common.py @@ -1323,7 +1323,9 @@ class RPCProgress(object): def return_(): if self.exception: - raise RPCException(self.exception) + if not isinstance(self.exception, RPCException): + raise RPCException(self.exception) + raise self.exception else: return self.res