From e5194847b3b67bcfcad570bb9fc9e87f0b136f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 22 May 2008 10:42:31 +0200 Subject: [PATCH] Catch exception when reload timezone as it is done in background --- tryton/rpc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tryton/rpc.py b/tryton/rpc.py index 269cf91396..f070232801 100644 --- a/tryton/rpc.py +++ b/tryton/rpc.py @@ -130,7 +130,10 @@ def context_reload(): else: gtk.widget_set_default_direction(gtk.TEXT_DIR_LTR) if i == 'timezone': - TIMEZONE = execute('common', 'timezone_get') + try: + TIMEZONE = execute('common', 'timezone_get') + except: + pass def execute(obj, method, *args): global _SOCK, _DATABASE, _USER, _SESSION