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

Catch KeyError #18

Merged
merged 1 commit into from
Dec 22, 2021
Merged

Catch KeyError #18

merged 1 commit into from
Dec 22, 2021

Conversation

mmacata
Copy link
Member

@mmacata mmacata commented Dec 22, 2021

This PR catches the error when a template is stored but can not be read correctly.
Whether the the content of the file is valid JSON was already checked before. If it is valid but doesn't contain certain keys, a KeyError was thrown. This PR catches it.

Copy link
Member

@anikaweinmann anikaweinmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Very helpful

@mmacata mmacata merged commit bf71866 into actinia-org:main Dec 22, 2021
@mmacata mmacata deleted the catch-keyerror branch June 30, 2022 13:24
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