From 851fba598ab6c54d58fcd7cdbc00ff344729804e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Tue, 8 Mar 2011 18:45:14 +0100 Subject: [PATCH] Fix warning handling in wizards --- CHANGELOG | 1 + tryton/wizard/main.py | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 276c4f22b7..4cde9c2dfe 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Fix warning in wizards * Added possibility to use server-side icons * Added additional gtk.Entry for filename on BinaryField * Display deleted lines in One2Many and Many2Many diff --git a/tryton/wizard/main.py b/tryton/wizard/main.py index 594b68b2d9..2a51421478 100644 --- a/tryton/wizard/main.py +++ b/tryton/wizard/main.py @@ -188,11 +188,13 @@ class Wizard(object): res = rpcprogress.run() exception = None except Exception, exception: - common.process_exception(exception, parent) - # Continue by running previous result except if access to - # wizard is denied - if exception.args[0] == 'AccessDenied': - break + if common.process_exception(exception, parent): + continue + else: + # Continue by running previous result except if access to + # wizard is denied + if exception.args[0] == 'AccessDenied': + break if not res: if dia: res = {'type': 'form'}