From 85d300f94ef60ef60416786a80db2d89917b8266 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Fri, 8 Sep 2023 11:43:37 -0400 Subject: Prevent subtitles not having a proper matches attribute from raising a TypeError exception. #2243 --- bazarr/subtitles/processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr/subtitles/processing.py b/bazarr/subtitles/processing.py index fd14ce7b0..49c039281 100644 --- a/bazarr/subtitles/processing.py +++ b/bazarr/subtitles/processing.py @@ -148,7 +148,7 @@ def process_subtitle(subtitle, media_type, audio_language, path, max_score, is_u subtitle_id=subtitle.id, reversed_subtitles_path=reversed_subtitles_path, hearing_impaired=subtitle.language.hi, - matched=list(subtitle.matches), + matched=list(subtitle.matches or []), not_matched=_get_not_matched(subtitle, media_type)) -- cgit v1.2.3