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:
parent
d340026502
commit
779eab841a
1 changed files with 3 additions and 1 deletions
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue