Closed nils-herrmann closed 7 months ago
Can you do this with a try-except clause instead, and return None if it fails? try-except is faster when the exception triggers most of the time.
Please consider adding a dozen lines to make a new test here: tests/test_medline_parser.py https://github.com/titipata/pubmed_parser/blob/master/tests/test_medline_parser.py
Looks good to me. Have a few more eyes review. If no objections, ready to merge. Thanks @nils-herrmann
Side question to the other maintainers of this project: Do I see this correctly that are no tests for the pubmed_web_parser
yet?
parse_xml_web() does not parse the language of the publication. This PR implements the needed code.