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

Raise BadResponseFormat if malformed JSON-RPC response #2188

Merged
merged 3 commits into from
Oct 27, 2021

Conversation

kclowes
Copy link
Collaborator

@kclowes kclowes commented Oct 21, 2021

What was wrong?

When responses were coming back without a result key, a KeyError was thrown, which was not ideal.

Related to Issue #2161

How was it fixed?

Now we raise a BadResponseFormat error with the raw response. BadResponseFormat inherits from the KeyError that was getting thrown for backwards compatibility.

Todo:

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@kclowes kclowes changed the title [WIP] Raise BadResponseFormat if malformed JSON-RPC response Raise BadResponseFormat if malformed JSON-RPC response Oct 22, 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