We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The JSON loader does not handle JSON exceptions when loading, how to reproduce the error (tested on environs 9.3.1, latest on pipy at the moment):
from environs import Env import os os.environ['TEST_JSON'] = 'test' env = Env() env.json('TEST_JSON')
Error message:
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Whereas I would expect a more descriptive error like in the other parsers:
environs.EnvValidationError: Environment variable "TEST_JSON" invalid: Not a valid boolean.
The text was updated successfully, but these errors were encountered:
Fix json parser not being descriptive enough (#209). (#212)
959caae
* Fix json parser not being descriptive enough (#209). * Fix tox warnings. * Minor fixups; update changelog Co-authored-by: Steven Loria <[email protected]>
No branches or pull requests
The JSON loader does not handle JSON exceptions when loading, how to reproduce the error (tested on environs 9.3.1, latest on pipy at the moment):
Error message:
Whereas I would expect a more descriptive error like in the other parsers:
environs.EnvValidationError: Environment variable "TEST_JSON" invalid: Not a valid boolean.
The text was updated successfully, but these errors were encountered: