diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-11-27 22:03:53 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-11-27 22:03:53 +0100 |
commit | ccc4e5ecafce186e20dece55d31b31e198201438 (patch) | |
tree | cebc3268fbb0910a2346c350cdd3b52c16e76628 /fuzzycat | |
parent | ee00eb1452e918fce4528c7cd9a6c1e51dbb90dc (diff) | |
download | fuzzycat-ccc4e5ecafce186e20dece55d31b31e198201438.tar.gz fuzzycat-ccc4e5ecafce186e20dece55d31b31e198201438.zip |
subtitle: default to list
Diffstat (limited to 'fuzzycat')
-rw-r--r-- | fuzzycat/verify.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzzycat/verify.py b/fuzzycat/verify.py index dd57506..e7b397f 100644 --- a/fuzzycat/verify.py +++ b/fuzzycat/verify.py @@ -258,8 +258,8 @@ def compare(a, b): if a_slug_title == b_slug_title: try: - a_subtitles = glom(a, "extra.subtitle") - b_subtitles = glom(b, "extra.subtitle") + a_subtitles = glom(a, "extra.subtitle") or [] + b_subtitles = glom(b, "extra.subtitle") or [] for a_sub in a_subtitles: for b_sub in b_subtitles: if slugify_string(a_sub) != slugify_string(b_sub): |