Skip to content

Commit

Permalink
Add ignore conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
moisses89 committed Sep 10, 2024
1 parent d8e0195 commit 5eeabd4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,10 @@ def _process_safe_creation_events(
logger.error(f"Event is not a Safe creation event {event['event']}")

with transaction.atomic():
InternalTx.objects.bulk_create(internal_txs)
InternalTxDecoded.objects.bulk_create(internal_decoded_txs)
logger.info(f"Inserted {len(internal_txs)} internal_txs ")
logger.info(f"Inserted {len(internal_decoded_txs)} internal_decoded_txs")
InternalTx.objects.bulk_create(internal_txs, ignore_conflicts=True)
InternalTxDecoded.objects.bulk_create(
internal_decoded_txs, ignore_conflicts=True
)

return internal_txs

Expand Down

0 comments on commit 5eeabd4

Please sign in to comment.