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 raising of ConfigException for get_int() and get_float() #180 #188

Conversation

ElkMonster
Copy link

This fixes issue #180 "get_int() and get_float() don't raise ConfigException if
wrong type". Calling get_int() and get_float() on a key that is not accepted
by int() or float() would result in TypeError or ValueError instead of
ConfigException. These cases are now handled.

…#180

This fixes issue chimpler#180 "get_int() and get_float() don't raise ConfigException if
wrong type". Calling get_int() and get_float() on a key that is not accepted
by int() or float() would result in TypeError or ValueError instead of
ConfigException. These cases are now handled.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 96.145% when pulling 4626f8b on ElkMonster:bugs/get-int-get-float-dont-raise-configexception into 0390324 on chimpler:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 96.145% when pulling 4626f8b on ElkMonster:bugs/get-int-get-float-dont-raise-configexception into 0390324 on chimpler:master.

@darthbear
Copy link
Member

Thank you @ElkMonster for your PR!

@darthbear darthbear merged commit 125f415 into chimpler:master Nov 15, 2018
@darthbear
Copy link
Member

Thanks @ElkMonster for your contribution. Your fix was pushed to pyhocon==0.3.48

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.

3 participants