From 99e940f7a81d5c7aca0f46570dbfe19ad3b6cfbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 7 Oct 2019 15:00:26 -0400 Subject: [PATCH] Drop language on all exception. --- libs/subliminal_patch/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/subliminal_patch/core.py b/libs/subliminal_patch/core.py index a4976efc4..3165ffc7e 100644 --- a/libs/subliminal_patch/core.py +++ b/libs/subliminal_patch/core.py @@ -618,7 +618,7 @@ def _search_external_subtitles(path, languages=None, only_one=False, scandir_gen language_code = Language.fromietf(language_code) except ValueError: language_code = None - except IndexError: + except: language_code = None # remove possible language code for matching