Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpost committed Jan 17, 2024
1 parent 14e02e0 commit 6ed0e5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/anthology/papers.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ def from_xml(xml_element, *args):
paper.attrib["retracted"] = " "

# Adjust the title for retracted papers
if "retracted" in paper.attrib and "xml_title" in paper.attrib and paper.attrib["xml_title"].text is not none:
if (
"retracted" in paper.attrib
and "xml_title" in paper.attrib
and paper.attrib["xml_title"].text is not None
):
paper.attrib["xml_title"].text = (
"[RETRACTED] " + paper.attrib["xml_title"].text
)
Expand Down

0 comments on commit 6ed0e5b

Please sign in to comment.