diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-10 11:19:21 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-10 11:19:21 +0200 |
commit | 95bbc1e582cef4f058b1991cd758dc172e118bd5 (patch) | |
tree | 0cb74d2c1b5c46986204b74eb12ea685435c4691 /src/web/views | |
parent | try to fix (diff) | |
download | newspipe-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__.py | 5 |
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()) |