Stop wizard on TrytonServerError if there is no screen
issue2569 review347001 (transplanted from f3efd9da7bb8145108e72d82d1d3afc41414fe45)
This commit is contained in:
1 parent
40ef533470
commit
732ed37303
1 file changed
+3
-2
@@ -82,8 +82,9 @@ class Wizard(object):
|
||||
result = RPCExecute('wizard', self.action, 'execute',
|
||||
self.session_id, data, self.state, context=ctx)
|
||||
except RPCException, rpc_exception:
|
||||
if not isinstance(rpc_exception.exception,
|
||||
TrytonServerError):
|
||||
if (not isinstance(rpc_exception.exception,
|
||||
TrytonServerError)
|
||||
or not self.screen):
|
||||
self.state = self.end_state
|
||||
break
|
||||
|
||||
|
||||
Reference in new issue
Block a user