diff --git a/src/calibre/ebooks/oeb/polish/container.py b/src/calibre/ebooks/oeb/polish/container.py index 589eae83c1..4bb53e8bd1 100644 --- a/src/calibre/ebooks/oeb/polish/container.py +++ b/src/calibre/ebooks/oeb/polish/container.py @@ -118,7 +118,10 @@ def href_to_name(href, root, base=None): # assume all such paths are invalid/absolute paths. return None fullpath = os.path.join(base, *href.split('/')) - return unicodedata.normalize('NFC', abspath_to_name(fullpath, root)) + try: + return unicodedata.normalize('NFC', abspath_to_name(fullpath, root)) + except ValueError: + return None class ContainerBase: # {{{