FIX: Added catch exception to having a blank publisher name as a result of a failed refresh sequence

This commit is contained in:
evilhero 2018-02-18 13:57:22 -05:00
parent 4cce202fe4
commit 9c93d29c81
1 changed files with 5 additions and 1 deletions

View File

@ -1399,7 +1399,11 @@ def havetotals(refreshit=None):
if recentstatus == 'Loading':
cpub = comic['ComicPublished']
else:
cpub = re.sub('(N)', '', comic['ComicPublished']).strip()
try:
cpub = re.sub('(N)', '', comic['ComicPublished']).strip()
except Exception as e:
logger.warn('[Error: %s] No Publisher found for %s - you probably want to Refresh the series when you get a chance.' % (e, comic['ComicName']))
cpub = None
comics.append({"ComicID": comic['ComicID'],
"ComicName": comic['ComicName'],