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
1 changed files with 3 additions and 1 deletions

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})