From ccf79a287ca20b90088d1b89699edac564e56e31 Mon Sep 17 00:00:00 2001 From: Uxio Fuentefria Date: Tue, 21 Nov 2023 11:00:32 +0100 Subject: [PATCH] Ignore decoding errors --- safe_transaction_service/history/indexers/events_indexer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/safe_transaction_service/history/indexers/events_indexer.py b/safe_transaction_service/history/indexers/events_indexer.py index 1dfafa95a..0ee02792a 100644 --- a/safe_transaction_service/history/indexers/events_indexer.py +++ b/safe_transaction_service/history/indexers/events_indexer.py @@ -6,6 +6,7 @@ from django.conf import settings import gevent +from eth_abi.exceptions import DecodingError from eth_typing import ChecksumAddress from eth_utils import event_abi_to_log_topic from gevent import pool @@ -223,7 +224,7 @@ def decode_element(self, log_receipt: LogReceipt) -> Optional[EventData]: # One topic can have multiple matching ABIs due to `indexed` elements changing how to decode it try: return event_to_listen.process_log(log_receipt) - except LogTopicError: + except (LogTopicError, DecodingError): continue logger.error(