aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-10 11:19:21 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-10 11:19:21 +0200
commit95bbc1e582cef4f058b1991cd758dc172e118bd5 (patch)
tree0cb74d2c1b5c46986204b74eb12ea685435c4691 /src/web/views
parenttry to fix (diff)
downloadnewspipe-95bbc1e582cef4f058b1991cd758dc172e118bd5.tar.gz
newspipe-95bbc1e582cef4f058b1991cd758dc172e118bd5.tar.bz2
newspipe-95bbc1e582cef4f058b1991cd758dc172e118bd5.zip
fixed bug in the translations.
Diffstat (limited to 'src/web/views')
-rw-r--r--src/web/views/__init__.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/web/views/__init__.py b/src/web/views/__init__.py
index 10b5cf54..e0e49927 100644
--- a/src/web/views/__init__.py
+++ b/src/web/views/__init__.py
@@ -19,7 +19,4 @@ from flask import g
@g.babel.localeselector
def get_locale():
- try:
- return request.accept_languages.best_match(conf.LANGUAGES.keys())
- except:
- return 'en'
+ return request.accept_languages.best_match(conf.LANGUAGES.keys())
bgstack15