mirror of
https://github.com/simple-login/app.git
synced 2024-11-13 07:31:12 +01:00
If the transactional_id is None do nothing
This commit is contained in:
parent
565f6dc142
commit
a7d4bd15a7
1 changed files with 5 additions and 0 deletions
|
@ -1891,6 +1891,11 @@ def handle_transactional_bounce(
|
|||
envelope: Envelope, msg, rcpt_to, transactional_id=None
|
||||
):
|
||||
LOG.d("handle transactional bounce sent to %s", rcpt_to)
|
||||
if transactional_id is None:
|
||||
LOG.i(
|
||||
f"No transactional record for {envelope.mail_from} -> {envelope.rcpt_tos}"
|
||||
)
|
||||
return
|
||||
|
||||
transactional = TransactionalEmail.get(transactional_id)
|
||||
# a transaction might have been deleted in delete_logs()
|
||||
|
|
Loading…
Reference in a new issue