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
This commit is contained in:
Cédric Krier committed 2014-03-17 18:53:24 +01:00
1 parent 3ffbf5edce
commit f30cf99bd0
1 file changed
+1 -5
+1 -5
View File
@@ -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: