mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 19:57:29 +01:00
Fix crash
This commit is contained in:
parent
482c9e5905
commit
9de4ad5cb3
@ -143,5 +143,7 @@ def set_locale():
|
|||||||
else:
|
else:
|
||||||
resp = make_response(redirect(url_for("homepage.home")))
|
resp = make_response(redirect(url_for("homepage.home")))
|
||||||
|
|
||||||
resp.set_cookie("locale", locale)
|
if locale:
|
||||||
return resp
|
resp.set_cookie("locale", locale)
|
||||||
|
|
||||||
|
return resp
|
||||||
|
Loading…
Reference in New Issue
Block a user