mirror of https://github.com/CIRCL/AIL-framework
fix: [language] libretranslate unreachable
parent
25c467f11a
commit
cea96863ba
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue