diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-15 06:57:00 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-15 06:57:00 +0200 |
commit | 33158b61e2251a5f7ecf887346744ab013e9258a (patch) | |
tree | 3db8c1fc5fa91d184ebe524a42d46529e8b04a04 /pyaggr3g470r/views.py | |
parent | Updated README. (diff) | |
download | newspipe-33158b61e2251a5f7ecf887346744ab013e9258a.tar.gz newspipe-33158b61e2251a5f7ecf887346744ab013e9258a.tar.bz2 newspipe-33158b61e2251a5f7ecf887346744ab013e9258a.zip |
Bugfix.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
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. |