FIX strange error with nginx and accept-language

This commit is contained in:
boyska 2019-02-21 19:11:57 +01:00
parent 52eea7a409
commit 6ffeadc576

View file

@ -175,9 +175,11 @@ def rpc_wip():
def babel_get_locale(): def babel_get_locale():
if request.accept_languages: try:
return request.accept_languages[0][0] if request.accept_languages:
return None return request.accept_languages[0][0]
finally:
return None
def create_app(queue, larigira): def create_app(queue, larigira):