-
-
Notifications
You must be signed in to change notification settings - Fork 299
Catch EDR AttributeError errors more fine grained
#2118
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
Conversation
|
I am unclear why the build is failing. The tests all pass locally including the tile test in question that is failing. Is this a quirk of the ci environment in some way that I am overlooking? I can't think of any reason the change to EDR queries would affect tiles |
I think this test is unrelated to your PR. Let me double check and come back to you. Thanks |
|
@doublebyte1 It seems there was a fix in the main branch. I have synced this PR so it should be all set now 👍 |
|
@tomkralidis thanks for your comments; I have made the changes you requested and believe this should be all set now. |
Overview
tryexceptover everyAttributeErrorin thequeryfunctionAttributeErrorit will mistakenly say that the query is not implemented and it is possible to get confusing errors like these, when it reality is was coming from anAttributeErrorin the providerFix
This PR fixes this behavior to:
getattrcall so otherAttributeErrorsare preservedquery_typeis passed in. Otherwise you would try to dogetattrwithNonewhich could in the future cause other confusing issuesRelated Issue / discussion
N/A
Additional information
N/A
Dependency policy (RFC2)
Updates to public demo
Contributions and licensing
(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)