Skip to content

Fix json parser not being descriptive enough (#209).#212

Merged
sloria merged 3 commits intosloria:masterfrom
bvanelli:master
Mar 28, 2021
Merged

Fix json parser not being descriptive enough (#209).#212
sloria merged 3 commits intosloria:masterfrom
bvanelli:master

Conversation

@bvanelli
Copy link
Copy Markdown
Contributor

Old error message:

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

New error message:

environs.EnvValidationError: Environment variable "JSON" invalid: Not a valid json.

Copy link
Copy Markdown
Owner

@sloria sloria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Made a few minor fixups.

Good to go once CI is passing.

@sloria sloria enabled auto-merge (squash) March 28, 2021 19:14
@sloria sloria merged commit 959caae into sloria:master Mar 28, 2021
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.

2 participants