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.
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.