From 732ed37303cdf7f792caca0e82344d3bba0a6f21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 27 Apr 2012 13:37:07 +0200 Subject: [PATCH] Stop wizard on TrytonServerError if there is no screen issue2569 review347001 (transplanted from f3efd9da7bb8145108e72d82d1d3afc41414fe45) --- tryton/gui/window/wizard.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tryton/gui/window/wizard.py b/tryton/gui/window/wizard.py index d57dc4d79b..b18a2e5666 100644 --- a/tryton/gui/window/wizard.py +++ b/tryton/gui/window/wizard.py @@ -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