Skip to content

Conversation

iMacTia
Copy link
Collaborator

@iMacTia iMacTia commented Sep 24, 2019

Description

Type initializers (e.g. Integer()) raise a TypeError when passed some types (e.g. Boolean), and ArgumentError for others (e.g. String).
This change adds TypeError to the list of rescued exceptions that get re-raised as InvalidParameterError.
Fixes #48.

Fixes #48.
Explanation: Type initializers (e.g. `Integer()`) raise a `TypeError` when passed some types (e.g. Boolean), and `ArgumentError` for others (e.g. String).
This change adds TypeError to the list of rescued exception that get re-raised as `InvalidParameterError`.
@iMacTia iMacTia merged commit 2092168 into master Sep 24, 2019
@iMacTia iMacTia deleted the fix/#48-boolean-type-coercion branch September 24, 2019 12:46
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.

Boolean type conversion issue
1 participant