mirror of https://github.com/evilhero/mylar
FIX: Added catch exception to having a blank publisher name as a result of a failed refresh sequence
This commit is contained in:
parent
4cce202fe4
commit
9c93d29c81
|
@ -1399,7 +1399,11 @@ def havetotals(refreshit=None):
|
||||||
if recentstatus == 'Loading':
|
if recentstatus == 'Loading':
|
||||||
cpub = comic['ComicPublished']
|
cpub = comic['ComicPublished']
|
||||||
else:
|
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'],
|
comics.append({"ComicID": comic['ComicID'],
|
||||||
"ComicName": comic['ComicName'],
|
"ComicName": comic['ComicName'],
|
||||||
|
|
Loading…
Reference in New Issue