Catch exception when reload timezone as it is done in background

This commit is contained in:
Cédric Krier committed 2008-05-22 10:42:31 +02:00
1 parent 73c75230e2
commit e5194847b3
1 file changed
+4 -1
+4 -1
View File
@@ -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