From 33158b61e2251a5f7ecf887346744ab013e9258a Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 15 May 2014 06:57:00 +0200 Subject: Bugfix. --- pyaggr3g470r/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 9b0dac85..301cd7db 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -124,7 +124,10 @@ def get_locale(): @babel.timezoneselector def get_timezone(): - return conf.TIME_ZONE[get_locale()] + try: + return conf.TIME_ZONE[get_locale()] + except: + return conf.TIME_ZONE["en"] # # Views. -- cgit