adsabs / ADSIngestParser

Curation parser library
MIT License
0 stars 7 forks source link

Crossref parsing fails for records without contributors #110

Closed seasidesparrow closed 6 months ago

seasidesparrow commented 6 months ago

Describe the bug The CrossrefParser _parse_contrib method (https://github.com/adsabs/ADSIngestParser/blob/9dd796b094256f1596323ea38bda78d2ad01e771/adsingestp/parsers/crossref.py#L243) will throw an exception if the record has no <contributors> tag.

To Reproduce Try to fetch and parse the record for doi = 10.4213/im9580e. Parsing will fail to produce output with the error message 'NoneType' object has no attribute 'extract'.

seasidesparrow commented 6 months ago

Fixed by #111