Skip to content

Conversation

@mbwmbw1337
Copy link

Ensure dictionary key exists to support common .get() method with default when not existing. Current code throws keyerror even when using a smd.get('non-exist-key', 'default_value')

Closes #51

Ensure dictionary key exists to support common .get() method with default when not existing. Current code throws keyerror even when using a smd.get('non-exist-key', 'default_value')
Copy link

@renanivo renanivo left a comment

Choose a reason for hiding this comment

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

Like I commented in the issue. I could not reproduce (or understande) the issue. Please, lets use the issue to discuss the scenario where the bug happens before I can review this PR.

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.

smd.get('missing-key', 'default-value') returns keyerror

2 participants