-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
v7breaking changes considered for v7breaking changes considered for v7
Description
RPC errors are handled in various ways depending on the format of the response. When a response is malformed in a way that raises a BadResponseFormat, the raw response is appended to the error message, making it difficult for humans to parse.
Other exceptions like ValueError could also provide better messages and information.
For this effort, consider splitting up the message from the response as separate arguments to the excpetions. Also provide more context about the errors if possible.
It may be useful to audit other exceptions in web3.py to see if they can be improved as well.
Metadata
Metadata
Assignees
Labels
v7breaking changes considered for v7breaking changes considered for v7