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

DM-17912 Fix potential KeyError in gen3 datasets. #78

Merged
merged 1 commit into from Feb 22, 2019
Merged

Conversation

czwa
Copy link
Contributor

@czwa czwa commented Feb 19, 2019

The inputTypeDict and outputTypeDict are constructed with all possible
input and output datasets, and are culled based on the configuration
parameters. If the entry does not exist in the dict (possibly due to
other configurations), this can cause a KeyError. Resolve this by
using dict.pop("key", None) instead of del dict["key"].

@czwa czwa requested a review from natelust February 19, 2019 17:11
The inputTypeDict and outputTypeDict are constructed with all possible
input and output datasets, and are culled based on the configuration
parameters.  If the entry does not exist in the dict (possibly due to
other configurations), this can cause a KeyError.  Resolve this by
using dict.pop("key", None) instead of del dict["key"].
@czwa czwa merged commit b873210 into master Feb 22, 2019
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.

None yet

2 participants