Skip to content

Commit

Permalink
Improve precision of wording
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Jul 9, 2021
1 parent a4f47b9 commit 11b2557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imxml2django.py
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,7 @@ def bring_footnote_down_django(footnote, fragment, footnote_number, object_numbe
corresponding_attribute = pc.get("corresp")[1:]
corresponding_paragraph = xmlDjangoTree.xpath("//EOAparagraph[@xml:id='{}']".format(corresponding_attribute))
if len(corresponding_paragraph) == 0:
logging.error("There seems to be no corresponding xml:id for %s. Exiting." % corresponding_attribute)
logging.error("There is no corresponding xml:id for %s. Exiting." % corresponding_attribute)
sys.exit(1)
elif len(corresponding_paragraph) > 1:
logging.error("The xml:id %s has been assigned more than once. This is not allowed. Exiting." % corresponding_paragraph[0].attrib["{http://www.w3.org/XML/1998/namespace}id"])
Expand Down

0 comments on commit 11b2557

Please sign in to comment.