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: