dq is not in info - #1080
Conversation
981cdd2 to
83e3af8
Compare
There was a problem hiding this comment.
Make exceptions more explicit?
if hasattr(md, 'dataquality'):
_set(context, recobj, 'pycsw:Degree', ','.join(md.dataquality.conformancedegree))
_set(context, recobj, 'pycsw:Lineage', md.dataquality.lineage)
_set(context, recobj, 'pycsw:SpecificationTitle', md.dataquality.specificationtitle)
try:
_set(context, recobj, 'pycsw:SpecificationDate', md.dataquality.specificationDate[0])
except IndexError:
LOGGER.debug('No specification date')There was a problem hiding this comment.
indexerror is not thrown if element does not exist, not sure when it is thrown
replaced it for normal exception, then logging the exception, was that the idea?
83e3af8 to
3abba80
Compare
9570f93 to
f3afaa3
Compare
|
This Pull Request has been inactive for 90 days. In order to manage maintenance burden, it will be automatically closed in 7 days. |
f3afaa3 to
f124a82
Compare
|
This Pull Request has been inactive for 90 days. In order to manage maintenance burden, it will be automatically closed in 7 days. |
|
This Pull Request has been inactive for 90 days. In order to manage maintenance burden, it will be automatically closed in 7 days. |
|
This Pull Request has been inactive for 90 days. In order to manage maintenance burden, it will be automatically closed in 7 days. |
|
This Pull Request has been closed due to there being no activity for more than 90 days. |
Overview
fixes bug on metadata import
Related Issue / Discussion
fixes #923
Additional Information
uses try catch when property is not available (not provided by owslib) instead of hasattr
Contributions and Licensing
(as per https://github.com/geopython/pycsw/blob/master/CONTRIBUTING.rst#contributions-and-licensing)