This commit is contained in:
Kovid Goyal 2012-05-20 16:45:39 +05:30
parent 217d0f3151
commit 7a4b6ace52

View File

@ -291,7 +291,10 @@ class OEBReader(object):
href, _ = urldefrag(href) href, _ = urldefrag(href)
if not href: if not href:
continue continue
try:
href = item.abshref(urlnormalize(href)) href = item.abshref(urlnormalize(href))
except ValueError: # Malformed URL
continue
if href not in manifest.hrefs: if href not in manifest.hrefs:
continue continue
found = manifest.hrefs[href] found = manifest.hrefs[href]