diff --git a/imxml2epub.py b/imxml2epub.py index da6b902..ba3fa58 100755 --- a/imxml2epub.py +++ b/imxml2epub.py @@ -1156,7 +1156,8 @@ class FootnoteError(Exception): if xmlChild.tag == "item": xmlChild.tag = "dd" del xmlChild.attrib["id"] - del xmlChild.attrib["id-text"] + if xmlChild.get("id-text"): + del xmlChild.attrib["id-text"] logging.info(f"{logseparator}Preparing Blockquotes") xmlParagraphs = xmlEbookTree.findall(".//p")