From cea96863ba59977024e8e9b9e1e2befa5529cd9a Mon Sep 17 00:00:00 2001 From: terrtia Date: Thu, 7 Dec 2023 14:59:40 +0100 Subject: [PATCH] fix: [language] libretranslate unreachable --- bin/lib/Language.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/lib/Language.py b/bin/lib/Language.py index dd8df1c2..7b688e2b 100755 --- a/bin/lib/Language.py +++ b/bin/lib/Language.py @@ -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