Commit 6b8fd3ed authored by Alexander Lercher's avatar Alexander Lercher

[TraceRetrieval] Not storing transaction on final keyerror

This keyerror meant duplicate -> handled now explicitly
parent cf214567
......@@ -199,8 +199,8 @@ class MessageHandler:
try:
self._mongo_repo.add_transaction(transaction)
except KeyError as e:
LOGGER.error(f"{e}")
self._mongo_repo.add_failed_transaction(transaction_message)
LOGGER.error(f"{e}, ignored {transaction_message}")
# self._mongo_repo.add_failed_transaction(transaction_message)
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment