mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 23:34:05 +08:00
remove the exception logging when a transaction isn't found
This commit is contained in:
parent
51a38be070
commit
3f7d325e6e
1 changed files with 1 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue