From ac720ef80d0a2b96a205dcd1f8bb1cc685d7e72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 1 Aug 2013 15:59:57 +0200 Subject: [PATCH] Fix fallback value of get_preferences (transplanted from b70b126c0b22c7db6ad9aeb30a752b47eaeeeba2) --- tryton/gui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/main.py b/tryton/gui/main.py index 26a8e42e8e..9d90cfecee 100644 --- a/tryton/gui/main.py +++ b/tryton/gui/main.py @@ -928,7 +928,7 @@ class Main(object): prefs = RPCExecute('model', 'res.user', 'get_preferences', False) except RPCException: - prefs = None + prefs = {} common.ICONFACTORY.load_icons() if prefs and 'language_direction' in prefs: translate.set_language_direction(prefs['language_direction'])