diff --git a/tryton/gui/window/preference.py b/tryton/gui/window/preference.py index 79f5d80fdd..369ae4a64d 100644 --- a/tryton/gui/window/preference.py +++ b/tryton/gui/window/preference.py @@ -34,9 +34,15 @@ class Preference(object): try: res = user.get_preferences_fields_view(rpc.CONTEXT) except Exception, exception: - common.process_exception(exception, parent) - self.win.destroy() - raise + if not common.process_exception(exception, parent): + self.win.destroy() + raise + try: + res = user.get_preferences_fields_view(rpc.CONTEXT) + except Exception, exception: + common.process_exception(exception, parent) + self.win.destroy() + raise arch = res['arch'] fields = res['fields'] self.screen = Screen('res.user', self.win, view_type=[])