From f30cf99bd007589233401e82ed8bfb1c4e71c6cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 17 Mar 2014 18:53:24 +0100 Subject: [PATCH] Process exception without callback process_exception doesn't always call rpc_execute so as the callback is not always called, it should be called from RPCProgress. issue3762 review4381002 --- tryton/common/common.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tryton/common/common.py b/tryton/common/common.py index 9fe4e685b6..29513198f2 100644 --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -1305,18 +1305,14 @@ class RPCProgress(object): if self.process_exception_p: def rpc_execute(*args): return RPCProgress('execute', - args).run(self.process_exception_p, self.callback) + args).run(self.process_exception_p) result = process_exception(self.exception, *self.args, rpc_execute=rpc_execute, session=self.session) - if self.callback: - return if result is False: self.exception = RPCException(self.exception) else: self.exception = None self.res = result - else: - self.exception def return_(): if self.exception: