Fix #5679 (CHM file unable to be converted to mobi)

This commit is contained in:
Kovid Goyal 2010-06-04 00:08:23 -06:00
parent ef47738914
commit 0c40b8e8ee

View File

@ -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)