Replace to warning.

pull/1034/head
Andrey 2024-03-20 18:47:00 +02:00
rodzic d7281b6d14
commit da0f089c0d
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -949,15 +949,14 @@ def check_if_smart_contract(
web3_client = connect(blockchain_type, user_token=user_token)
is_contract = False
breakpoint()
try:
code = web3_client.eth.getCode(address)
except Exception as e:
logger.error(
logger.warning(
f"Error while getting code of address: {e} in blockchain: {blockchain_type}"
)
code = b""
if code != b"":
is_contract = True