-
-
Notifications
You must be signed in to change notification settings - Fork 175
dq is not in info #1080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
dq is not in info #1080
Conversation
981cdd2 to
83e3af8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
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)