aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-15 06:57:00 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-15 06:57:00 +0200
commit33158b61e2251a5f7ecf887346744ab013e9258a (patch)
tree3db8c1fc5fa91d184ebe524a42d46529e8b04a04
parentUpdated README. (diff)
downloadnewspipe-33158b61e2251a5f7ecf887346744ab013e9258a.tar.gz
newspipe-33158b61e2251a5f7ecf887346744ab013e9258a.tar.bz2
newspipe-33158b61e2251a5f7ecf887346744ab013e9258a.zip
Bugfix.
-rw-r--r--pyaggr3g470r/views.py5
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.
bgstack15