From 342c5df3bb2495092085d7bb7cc1ad98786d212f Mon Sep 17 00:00:00 2001 From: FeSens Date: Mon, 25 Jul 2022 19:15:22 -0300 Subject: [PATCH] ignore ContractLogicError --- ethereumetl/service/eth_token_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethereumetl/service/eth_token_service.py b/ethereumetl/service/eth_token_service.py index b95296010..bfabdd508 100644 --- a/ethereumetl/service/eth_token_service.py +++ b/ethereumetl/service/eth_token_service.py @@ -21,7 +21,7 @@ # SOFTWARE. import logging -from web3.exceptions import BadFunctionCallOutput +from web3.exceptions import BadFunctionCallOutput, ContractLogicError from ethereumetl.domain.token import EthToken from ethereumetl.erc20_abi import ERC20_ABI, ERC20_ABI_ALTERNATIVE_1 @@ -82,7 +82,7 @@ def _call_contract_function(self, func): # OverflowError exception happens if the return type of the function doesn't match the expected type result = call_contract_function( func=func, - ignore_errors=(BadFunctionCallOutput, OverflowError, ValueError), + ignore_errors=(BadFunctionCallOutput, ContractLogicError, OverflowError, ValueError), default_value=None) if self._function_call_result_transformer is not None: