1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-22 07:42:24 +00:00

FIX: return empty comic list instead of crashing

Thanks @LordJay23 and @DarkSir23 :)
This commit is contained in:
Barbeque Sauce 2019-12-06 11:17:26 -05:00 committed by evilhero
parent 63e6399dd4
commit 7e8025c5f6

View file

@ -208,7 +208,9 @@ class FileChecker(object):
watchmatch['comiccount'] = comiccnt watchmatch['comiccount'] = comiccnt
if len(comiclist) > 0: if len(comiclist) > 0:
watchmatch['comiclist'] = comiclist watchmatch['comiclist'] = comiclist
else:
watchmatch['comiclist'] = []
if len(self.failed_files) > 0: if len(self.failed_files) > 0:
logger.info('FAILED FILES: %s' % self.failed_files) logger.info('FAILED FILES: %s' % self.failed_files)