From 0c40b8e8eefd87df39960e364dbbc79c889aaaae Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 4 Jun 2010 00:08:23 -0600 Subject: [PATCH] Fix #5679 (CHM file unable to be converted to mobi) --- src/calibre/ebooks/mobi/writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/mobi/writer.py b/src/calibre/ebooks/mobi/writer.py index e3a8f53685..ca5256b430 100644 --- a/src/calibre/ebooks/mobi/writer.py +++ b/src/calibre/ebooks/mobi/writer.py @@ -1334,7 +1334,7 @@ class MobiWriter(object): item = self._oeb.manifest.hrefs[href] try: data = rescale_image(item.data, self._imagemax) - except IOError: + except: self._oeb.logger.warn('Bad image file %r' % item.href) continue self._records.append(data)