From 52ea6e3d262eae24a1d443202ed6483f23b6af7d Mon Sep 17 00:00:00 2001 From: evilhero Date: Sun, 17 Mar 2019 13:06:42 -0400 Subject: [PATCH] FIX: fix for file-checker erroring on annual post-processing when no issue number present in some titles --- mylar/filechecker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mylar/filechecker.py b/mylar/filechecker.py index 8520535a..d9585727 100755 --- a/mylar/filechecker.py +++ b/mylar/filechecker.py @@ -1179,7 +1179,9 @@ class FileChecker(object): if mylar.CONFIG.ANNUALS_ON and 'annual' not in nspace_watchcomic.lower(): if 'annual' in series_name.lower(): - justthedigits = 'Annual ' + series_info['issue_number'] + justthedigits = 'Annual' + if series_info['issue_number'] is not None: + justthedigits += ' %s' % series_info['issue_number'] nspace_seriesname = re.sub('annual', '', nspace_seriesname.lower()).strip() nspace_seriesname_decoded = re.sub('annual', '', nspace_seriesname_decoded.lower()).strip() if alt_series is not None and 'annual' in alt_series.lower():