wmo-im / pywcmp

pywcmp provides validation and quality assessment capabilities for the WMO WIS Core Metadata Profile (WCMP)
https://community.wmo.int/activity-areas/wis
Other
9 stars 8 forks source link

'NoneType' object has no attribute 'split' #59

Closed maaikelimper closed 2 years ago

maaikelimper commented 2 years ago

Running over the metadata-file: urn_x-wmo_md_int.wmo.wis__MAXE98RUMS.xml, produces the following error:

/usr/local/lib/python3.7/site-packages/pywcmp-0.4.dev0-py3.7.egg/pywcmp/kpi.py in kpi_002(self)
    212 
    213             LOGGER.debug('Testing number of words')
--> 214             title_words = title.split()
    215             if len(title_words) >= 3:
    216                 score += 1

AttributeError: 'NoneType' object has no attribute 'split'
maaikelimper commented 2 years ago

https://oai.dwd.de/oai/provider?verb=GetRecord&identifier=urn:x-wmo:md:int.wmo.wis::MAXE98RUMS&metadataPrefix=iso19139

amilan17 commented 2 years ago

@maaikelimper - does this file also fail validation? (it should)