Skip to content
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

Fix KeyError on soda scan #540

Merged
merged 2 commits into from
Dec 10, 2024
Merged

Conversation

joostvenema
Copy link
Contributor

Better way to check if the key "fail" exists on the "diagnostics" object, so it won't throw this error:

if c["diagnostics"]["fail"] is not None:
       ~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'fail'
ERROR:root:'fail
  • Tests pass
  • ruff format
  • README.md updated (if relevant)
  •  CHANGELOG.md entry added

Better way to check if the key "fail" exists on the "diagnostics" object, so it won't throw this error:

```if c["diagnostics"]["fail"] is not None:
       ~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'fail'
ERROR:root:'fail```
@simonharrer simonharrer merged commit 117aa40 into datacontract:main Dec 10, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants