Stop wizard on TrytonServerError if there is no screen

issue2569
review347001
This commit is contained in:
Cédric Krier committed 2012-04-27 13:37:07 +02:00
1 parent 410d5b016d
commit 4ba40c7171
1 file changed
+3 -2
+3 -2
View File
@@ -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