From 9fb793a4882bbf66c09014df6c09fe4770f36c71 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Mon, 20 Mar 2023 06:16:37 -0400 Subject: [PATCH] Fixed error when manual search return an invalid subtitles. #2102 --- bazarr/subtitles/manual.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bazarr/subtitles/manual.py b/bazarr/subtitles/manual.py index 4dcb574c5..868918889 100644 --- a/bazarr/subtitles/manual.py +++ b/bazarr/subtitles/manual.py @@ -83,8 +83,12 @@ def manual_search(path, profile_id, providers, sceneName, title, media_type): can_verify_series = False if can_verify_series and not {"series", "season", "episode"}.issubset(matches): - logging.debug(f"BAZARR Skipping {s}, because it doesn't match our series/episode") - continue + try: + logging.debug(f"BAZARR Skipping {s}, because it doesn't match our series/episode") + except TypeError: + logging.debug("BAZARR Ignoring invalid subtitles") + finally: + continue initial_hi = None initial_hi_match = False