Handle zt lingua case

This commit is contained in:
Piero Toffanin 2023-10-30 13:23:16 -04:00
parent f9712c800c
commit 5033f58e0d

View file

@ -16,6 +16,8 @@ class Language:
def load_detector(langcodes = ()):
languages = []
for lc in langcodes:
if lc == 'zt':
continue
try:
languages.append(linguars.Language.from_iso_code_639_1(lc))
except Exception: