MOBI Input: Don't fail when the MOBI metadata species a cover that does not exist. Fixes #5333 (Coversion Failed)

This commit is contained in:
Kovid Goyal 2010-04-22 04:43:56 -06:00
parent 0d1031ab54
commit d4b4e1902d

View File

@ -628,7 +628,7 @@ class MobiReader(object):
os.remove(ncover) os.remove(ncover)
shutil.copyfile(cover, ncover) shutil.copyfile(cover, ncover)
cover_copied = os.path.abspath(ncover) cover_copied = os.path.abspath(ncover)
opf.cover = ncover.replace(os.sep, '/') opf.cover = ncover.replace(os.sep, '/')
manifest = [(htmlfile, 'application/xhtml+xml'), manifest = [(htmlfile, 'application/xhtml+xml'),
(os.path.abspath('styles.css'), 'text/css')] (os.path.abspath('styles.css'), 'text/css')]