Skip to content

Catch ValueError in api_call decorator#5

Merged
jkeyes merged 1 commit into
intercom:masterfrom
marselester:fix-json-value-error
Feb 25, 2013
Merged

Catch ValueError in api_call decorator#5
jkeyes merged 1 commit into
intercom:masterfrom
marselester:fix-json-value-error

Conversation

@marselester
Copy link
Copy Markdown
Contributor

When json response is incorrect api_call raises ValueError: No JSON object could be decoded. I propose to catch it and raise ServerError.

@ghost ghost assigned jkeyes Feb 25, 2013
jkeyes added a commit that referenced this pull request Feb 25, 2013
Catch ``ValueError`` in ``api_call`` decorator.

Fixes gh-5
@jkeyes jkeyes merged commit f38b16e into intercom:master Feb 25, 2013
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