Skip to content

Commit

Permalink
Ignore decoding errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 authored and moisses89 committed Nov 21, 2023
1 parent 382f1f7 commit ccf79a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion safe_transaction_service/history/indexers/events_indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit ccf79a2

Please sign in to comment.