mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5679 (CHM file unable to be converted to mobi)
This commit is contained in:
parent
ef47738914
commit
0c40b8e8ee
@ -1334,7 +1334,7 @@ class MobiWriter(object):
|
|||||||
item = self._oeb.manifest.hrefs[href]
|
item = self._oeb.manifest.hrefs[href]
|
||||||
try:
|
try:
|
||||||
data = rescale_image(item.data, self._imagemax)
|
data = rescale_image(item.data, self._imagemax)
|
||||||
except IOError:
|
except:
|
||||||
self._oeb.logger.warn('Bad image file %r' % item.href)
|
self._oeb.logger.warn('Bad image file %r' % item.href)
|
||||||
continue
|
continue
|
||||||
self._records.append(data)
|
self._records.append(data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user