This commit is contained in:
Kovid Goyal 2014-11-03 10:50:19 +05:30
parent 1f33ebeffe
commit 2255ee80a8

View File

@ -27,7 +27,7 @@ class Footnotes(object):
if fd is None: if fd is None:
raw = self.document.javascript('window.calibre_extract.get_footnote_data()', typ='string') raw = self.document.javascript('window.calibre_extract.get_footnote_data()', typ='string')
try: try:
fd = frozenset(unicode(QUrl(x).toLocalFile()) for x in json.loads(raw)) fd = frozenset(QUrl(x).toLocalFile() for x in json.loads(raw))
except Exception: except Exception:
fd = frozenset() fd = frozenset()
self.footnote_data_cache[current_url] = fd self.footnote_data_cache[current_url] = fd