diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ee4537e..fe9adc9 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -44,6 +44,7 @@ Fixed - Findings from CodeQL and Semgrep code scanning are resolved - Easy mode: the easy-mode PIN is sent to the card again, so ``info`` and other commands that need a verified PIN no longer end without output - A command that stops because the card has not verified the PIN now says so +- ``eth contract list_events`` with an event the contract's ABI does not define says that the event is not defined; it used to stop with an ``AttributeError`` `1.0.5 `_ ------------------------------------------------------------------------------------------------ diff --git a/cryptnox_cli/command/eth.py b/cryptnox_cli/command/eth.py index 6e2d98e..3d1db4a 100644 --- a/cryptnox_cli/command/eth.py +++ b/cryptnox_cli/command/eth.py @@ -151,7 +151,7 @@ def logs(self): try: event = getattr(contract_endpoint.events, self.data.event) - except web3.exceptions.ABIEventFunctionNotFound: + except web3.exceptions.ABIEventNotFound: print("The event is not defined") return 1