From 454192774dc9ecd8d7f920fcce8c8d8090748008 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 1613e0f238..2f2ecf0d63 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() common.MODELACCESS.load_models() if prefs and 'language_direction' in prefs: