Reviewers: ,
Please review this at http://codereview.tryton.org/328001/ Affected files: M tryton/common/common.py M tryton/gui/window/wizard.py Index: tryton/common/common.py =================================================================== --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -1160,7 +1160,9 @@ class RPCException(Exception): - pass + + def __init__(self, exception): + self.exception = exception class RPCProgress(object): @@ -1258,7 +1260,7 @@ self.error = False self.exception = None return self.run(process_exception_p) - raise RPCException() + raise RPCException(self.exception) else: raise self.exception return self.res Index: tryton/gui/window/wizard.py =================================================================== --- a/tryton/gui/window/wizard.py +++ b/tryton/gui/window/wizard.py @@ -81,8 +81,10 @@ try: result = RPCExecute('wizard', self.action, 'execute', self.session_id, data, self.state, context=ctx) - except RPCException: - self.state = self.end_state + except RPCException, rpc_exception: + if not isinstance(rpc_exception.exception, + TrytonServerError): + self.state = self.end_state break if 'view' in result: -- [email protected] mailing list
