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

Add ValueError catching to exc #135

Merged
merged 1 commit into from
Feb 20, 2017
Merged

Conversation

aaschaer
Copy link
Contributor

The exceptions were breaking when testing on malformed json. I feel like catching these provides a little more information should something get really messed up, but if we want to break explicitly when json cant even be parsed then just ignore this PR.

@sirosen
Copy link
Member

sirosen commented Feb 20, 2017

Yeah, I'm 100% onboard with this change.

The expectation we have set is that any API error will be propagated client-side as a GlobusAPIError. Anytime that that class breaks, we're raising the wrong type of exception.

@sirosen sirosen merged commit 24c091f into globus:master Feb 20, 2017
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