1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-01-03 05:24:43 +00:00

IMP: (#2271) Added logging of error encountered when unable to save cover into series directory during add/refresh

This commit is contained in:
evilhero 2019-05-04 11:34:00 -04:00
parent d340026502
commit 779eab841a

View file

@ -1610,7 +1610,9 @@ def image_it(comicid, latestissueid, comlocation, ComicImage):
if mylar.CONFIG.ENFORCE_PERMS:
filechecker.setperms(comiclocal)
except IOError as e:
logger.error('Unable to save cover into series directory (%s) at this time' % comiclocal)
logger.error('[%e] Error saving cover into series directory (%s) at this time' % (e, comiclocal))
except Exception as e:
logger.error('[%e] Unable to save cover into series directory (%s) at this time' % (e, comiclocal))
myDB = db.DBConnection()
myDB.upsert('comics', {'ComicImage': ComicImage}, {'ComicID': comicid})