mirror of https://github.com/CIRCL/AIL-framework
fix: [language] libretranslate unreachable
parent
25c467f11a
commit
cea96863ba
|
@ -313,8 +313,10 @@ class LanguageTranslator:
|
||||||
translation = None
|
translation = None
|
||||||
return translation
|
return translation
|
||||||
|
|
||||||
|
try:
|
||||||
LIST_LANGUAGES = LanguageTranslator().languages()
|
LIST_LANGUAGES = LanguageTranslator().languages()
|
||||||
|
except Exception:
|
||||||
|
LIST_LANGUAGES = []
|
||||||
|
|
||||||
def get_translation_languages():
|
def get_translation_languages():
|
||||||
return LIST_LANGUAGES
|
return LIST_LANGUAGES
|
||||||
|
|
Loading…
Reference in New Issue