aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
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