mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2024121 [[bug][convert] convert mobi to epub raise keyerror](https://bugs.launchpad.net/calibre/+bug/2024121)
This commit is contained in:
parent
bff8d6578b
commit
341f41b61d
@ -74,7 +74,10 @@ def collect_properties(container):
|
||||
if mt.lower() not in OEB_DOCS:
|
||||
continue
|
||||
name = container.href_to_name(item.get('href'), container.opf_name)
|
||||
try:
|
||||
root = container.parsed(name)
|
||||
except KeyError:
|
||||
continue
|
||||
root = ensure_namespace_prefixes(root, {'epub': EPUB_NS})
|
||||
properties = set()
|
||||
container.replace(name, root) # Ensure entities are converted
|
||||
|
Loading…
x
Reference in New Issue
Block a user