mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
Fix #323
This commit is contained in:
parent
06f111410d
commit
4bebf03725
@ -853,8 +853,8 @@ class HTMLConverter(object):
|
||||
pt.close()
|
||||
self.scaled_images[path] = pt
|
||||
return pt.name
|
||||
except IOError: # PIL chokes on interlaced PNG images
|
||||
self.logger.warning('Unable to process interlaced PNG %s', path)
|
||||
except (IOError, SystemError), err: # PIL chokes on interlaced PNG images as well a some GIF images
|
||||
self.logger.warning('Unable to process image %s. Error: %s'%(path, err))
|
||||
return None
|
||||
|
||||
pheight = int(self.current_page.pageStyle.attrs['textheight'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user