Skip to content

Commit

Permalink
Prevent subtitles not having a proper matches attribute from raising …
Browse files Browse the repository at this point in the history
…a TypeError exception. #2243
  • Loading branch information
morpheus65535 committed Sep 8, 2023
1 parent fbe6b76 commit 85d300f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bazarr/subtitles/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))


Expand Down

0 comments on commit 85d300f

Please sign in to comment.