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

Document KeyError handling #1078

Closed
wants to merge 1 commit into from
Closed

Document KeyError handling #1078

wants to merge 1 commit into from

Conversation

homeworkprod
Copy link
Contributor

The default value is also returned if the conversion callable raises a KeyError.

Save others some time and headache by communicating the behavior on KeyError upfront.

The default value is *also* returned if the conversion callable raises a `KeyError`.
@davidism
Copy link
Member

davidism commented Mar 5, 2017

Actually, that sounds like a bug. Should only return default for direct key error.

@davidism
Copy link
Member

davidism commented Apr 8, 2017

Closing in favor of fixing the bug.

@davidism davidism closed this Apr 8, 2017
@homeworkprod homeworkprod deleted the patch-1 branch October 12, 2017 05:12
@davidism davidism added this to the 0.13 milestone Dec 5, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants