FIX strange error with nginx and accept-language
This commit is contained in:
parent
52eea7a409
commit
6ffeadc576
1 changed files with 5 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue