mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-24 06:37:16 -04:00
no log: fixed empty subtitles being saved
This commit is contained in:
parent
811394cec3
commit
d8e58cac83
1 changed files with 1 additions and 1 deletions
|
@ -1193,7 +1193,7 @@ def save_subtitles(file_path, subtitles, single=False, directory=None, chmod=Non
|
|||
must_remove_hi = 'remove_HI' in subtitle.mods
|
||||
|
||||
# check content
|
||||
if subtitle.content is None:
|
||||
if subtitle.content is None or subtitle.text is None:
|
||||
logger.error('Skipping subtitle %r: no content', subtitle)
|
||||
continue
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue