mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-04 05:52:24 +08:00
Prevent subtitles not having a proper matches attribute from raising a TypeError exception. #2243
This commit is contained in:
parent
fbe6b765ae
commit
85d300f94e
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue