mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 08:23:10 +02:00
...
This commit is contained in:
parent
f23b065ec3
commit
c0b11c6964
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ def __init__(self, rootpath, opfpath, log):
|
|||
self.mime_map[name] = guess_type('a.opf')
|
||||
|
||||
if not hasattr(self, 'opf_name'):
|
||||
raise InvalidBook('Book has no OPF file')
|
||||
raise InvalidBook('Could not locate opf file: %r'%opfpath)
|
||||
|
||||
# Update mime map with data from the OPF
|
||||
for item in self.opf_xpath('//opf:manifest/opf:item[@href and @media-type]'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue