forked from CGM_Public/pretix_original
Fix crash when not language is set
This commit is contained in:
@@ -123,6 +123,7 @@ def get_babel_locale():
|
|||||||
# fallback to english
|
# fallback to english
|
||||||
|
|
||||||
try_locales = []
|
try_locales = []
|
||||||
|
if current_language:
|
||||||
if "-" in current_language:
|
if "-" in current_language:
|
||||||
lng_parts = current_language.split("-")
|
lng_parts = current_language.split("-")
|
||||||
if current_region:
|
if current_region:
|
||||||
|
|||||||
Reference in New Issue
Block a user