elifesciences / elife-tools

Python library for parsing eLife article XML data.
MIT License
15 stars 7 forks source link

Fix parsing an empty abstract. #384

Closed gnott closed 2 years ago

gnott commented 2 years ago

Re issue https://github.com/elifesciences/issues/issues/7551

In an earlier form of XML for a correction article, parsing an empty abstract <abstract><p/></abstract> raises a runtime exception. Check for whether the p tag is empty before trying to concatenate it as a string.