From 779eab841a9e5f4f8691411531c39a307949323e Mon Sep 17 00:00:00 2001 From: evilhero Date: Sat, 4 May 2019 11:34:00 -0400 Subject: [PATCH] IMP: (#2271) Added logging of error encountered when unable to save cover into series directory during add/refresh --- mylar/importer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mylar/importer.py b/mylar/importer.py index 729286ad..b308f1dd 100644 --- a/mylar/importer.py +++ b/mylar/importer.py @@ -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})