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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user