Drop language on all exception.

pull/614/head
Louis Vézina 5 years ago
parent 99e940f7a8
commit 2a78008ecb

@ -616,9 +616,9 @@ def _search_external_subtitles(path, languages=None, only_one=False, scandir_gen
language_code = p_root.rsplit(".", 1)[1].replace('_', '-')
try:
language_code = Language.fromietf(language_code)
except ValueError:
except:
language_code = None
except:
except IndexError:
language_code = None
# remove possible language code for matching

Loading…
Cancel
Save