titipata / pubmed_parser

:clipboard: A Python Parser for PubMed Open-Access XML Subset and MEDLINE XML Dataset
http://titipata.github.io/pubmed_parser/
MIT License
580 stars 166 forks source link

fixed bugs where methods were being called on NoneType objects #73

Closed nicford closed 4 years ago

nicford commented 4 years ago

I was parsing some data from PubMed and found a few cases where there was some missing information in the xml tags causing NoneType to be returned, therefore causing methods to be called on NoneType objects during runtime, causing the program to crash. I added some additional checking for NoneType to overcome this.

titipata commented 4 years ago

Thanks so much @njford!