summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-09-08 11:43:37 -0400
committermorpheus65535 <[email protected]>2023-09-08 11:44:23 -0400
commit85d300f94ef60ef60416786a80db2d89917b8266 (patch)
tree499a387e9ec0bb5e7964548893399ee501f57877
parentfbe6b765aec54ad4e728ddf36fc36fa62790f719 (diff)
downloadbazarr-85d300f94ef60ef60416786a80db2d89917b8266.tar.gz
bazarr-85d300f94ef60ef60416786a80db2d89917b8266.zip
Prevent subtitles not having a proper matches attribute from raising a TypeError exception. #2243
-rw-r--r--bazarr/subtitles/processing.py2
1 files changed, 1 insertions, 1 deletions
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))