diff --git a/bin/lib/Language.py b/bin/lib/Language.py index 6803cf51..a53391d8 100755 --- a/bin/lib/Language.py +++ b/bin/lib/Language.py @@ -493,10 +493,10 @@ def detect_libretranslate(self, content): def detect(self, content, force_gcld3=False): # TODO detect length between 20-200 ???? if not content: - return None + return [] content = _clean_text_to_translate(content, html=True) if not content: - return None + return [] # DEBUG # print('-------------------------------------------------------') # print(content)