remove the exception logging when a transaction isn't found

This commit is contained in:
Son 2021-02-06 16:00:32 +01:00
parent 51a38be070
commit 3f7d325e6e
1 changed files with 1 additions and 4 deletions

View File

@ -1512,13 +1512,10 @@ def handle_transactional_bounce(envelope: Envelope, rcpt_to):
transactional_id = parse_id_from_bounce(rcpt_to)
transactional = TransactionalEmail.get(transactional_id)
# a transaction might have been deleted in delete_logs()
if transactional:
LOG.info("Create bounce for %s", transactional.email)
Bounce.create(email=transactional.email, commit=True)
else:
LOG.exception(
"Cannot find transactional email for %s %s", transactional_id, rcpt_to
)
def handle(envelope: Envelope) -> str: