fix: [language] libretranslate unreachable

dev
terrtia 2023-12-07 14:59:40 +01:00
parent 25c467f11a
commit cea96863ba
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 4 additions and 2 deletions

View File

@ -313,8 +313,10 @@ class LanguageTranslator:
translation = None
return translation
LIST_LANGUAGES = LanguageTranslator().languages()
try:
LIST_LANGUAGES = LanguageTranslator().languages()
except Exception:
LIST_LANGUAGES = []
def get_translation_languages():
return LIST_LANGUAGES