1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-26 00:11:28 +02:00

Another part of logging adaptation

This commit is contained in:
2021-06-24 19:57:47 +02:00
parent 6dfcaea2dd
commit 230fe90e69
9 changed files with 56 additions and 59 deletions
+2 -1
View File
@@ -49,7 +49,8 @@ class ImagesManager(object):
try:
fmt, width, height = identify(item.data)
except Exception:
self.log.warning('Replacing corrupted image with blank: %s' % href)
self.log.warning('Replacing corrupted image with blank: %s',
href)
item.data = I('blank.png', data=True, allow_user_override=False)
fmt, width, height = identify(item.data)
image_fname = 'media/' + self.create_filename(href, fmt)