ethereum / web3.py

A python interface for interacting with the Ethereum blockchain and ecosystem.
http://web3py.readthedocs.io
MIT License
5k stars 1.7k forks source link

[V6] `web3exception` argument for `user_message` #3282

Closed reedsa closed 7 months ago

reedsa commented 7 months ago

What was wrong?

Related to #2798 Related to #3094

In #2796 there was a recommendation to add user_message to the Web3Exception class to support hint messages and other information for users.

How was it fixed?

Implemented an optional user_message named argument in Web3Exception. This adds the ability to provide a more human friendly message.

Todo:

Cute Animal Picture

Screen Shot 2024-03-18 at 1 44 36 PM