Fix warning handling in wizards

This commit is contained in:
Nicolas Évrard committed 2011-03-08 18:45:14 +01:00
1 parent 019848a90b
commit 851fba598a
2 files changed
+8 -5

No files matched your search

+1
View File
@@ -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
+7 -5
View File
@@ -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'}