Skip to content

Commit

Permalink
Fix ISO metadata parsing for empty gmd:featureCatalogueCitation. (#502)
Browse files Browse the repository at this point in the history
Fix issue #491.
  • Loading branch information
Roel authored and cehbrecht committed Aug 16, 2018
1 parent 5d057e6 commit ecc8409
Show file tree
Hide file tree
Showing 3 changed files with 1,310 additions and 1 deletion.
2 changes: 1 addition & 1 deletion owslib/iso.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ def __init__(self, fcd=None):

self.featurecatalogues = []
for i in fcd.findall(util.nspath_eval('gmd:featureCatalogueCitation', namespaces)):
val = i.attrib['uuidref']
val = i.attrib.get('uuidref')
val = util.testXMLValue(val, attrib=True)
if val is not None:
self.featurecatalogues.append(val)
Expand Down
Loading

0 comments on commit ecc8409

Please sign in to comment.