From 7a4b6ace52b773763af4380a3e36a0f2939d0c56 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 20 May 2012 16:45:39 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/reader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/reader.py b/src/calibre/ebooks/oeb/reader.py index c9a8429f3b..3531ca0250 100644 --- a/src/calibre/ebooks/oeb/reader.py +++ b/src/calibre/ebooks/oeb/reader.py @@ -291,7 +291,10 @@ class OEBReader(object): href, _ = urldefrag(href) if not href: continue - href = item.abshref(urlnormalize(href)) + try: + href = item.abshref(urlnormalize(href)) + except ValueError: # Malformed URL + continue if href not in manifest.hrefs: continue found = manifest.hrefs[href]