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 bug in TypeConversionDict #1107

Merged
merged 3 commits into from
Apr 15, 2017
Merged

Fix bug in TypeConversionDict #1107

merged 3 commits into from
Apr 15, 2017

Conversation

aaossa
Copy link
Contributor

@aaossa aaossa commented Apr 15, 2017

See #1102 and discussion in #1106


Fix #1102
Replaces #1106

During conversion, TypeConversionDict should propagate errors from the
converter (except ValueError)

Signed-off-by: Antonio Ossa <[email protected]>
This new test class includes three testcases: 1) Tests that the value
conversion works, 2) tests that the default value is returned when
conversion is not possible, and 3) tests that exceptions rased during
conversions are propagated

Signed-off-by: Antonio Ossa <[email protected]>
@untitaker untitaker merged commit 026bd27 into pallets:master Apr 15, 2017
@untitaker
Copy link
Contributor

Right on, thanks!

@ThiefMaster ThiefMaster changed the title Fix bug in TyppeConversionDict Fix bug in TypeConversionDict Apr 15, 2017
@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.

TypeConversionDict should not return default for KeyError during conversion
3 participants