Skip to content

Commit

Permalink
fix: loosen exc catcher (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Feb 14, 2024
1 parent 6255abc commit c30731a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dank_mids/brownie_patch/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def decode_output(call: ContractCall, data: bytes) -> Any:
return decoded
except AttributeError as e:
# NOTE: Not sure why this happens as we set the attr while patching the call but w/e, this works for now
if str(e) != "'ContractCall' object has no attribute '_skip_decoder_proc_pool'":
if not str(e).endswith(" object has no attribute '_skip_decoder_proc_pool'"):
raise e
logger.debug("DEBUG ME BRO: %s", e)
call._skip_decoder_proc_pool = call._address in _skip_proc_pool
Expand Down

0 comments on commit c30731a

Please sign in to comment.