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():
if request.accept_languages:
return request.accept_languages[0][0]
return None
try:
if request.accept_languages:
return request.accept_languages[0][0]
finally:
return None
def create_app(queue, larigira):