mirror of
https://github.com/simple-login/app.git
synced 2025-10-04 12:24:47 +08:00
use warning level for when email_log cannot be parsed
This commit is contained in:
parent
b7b4c07cd3
commit
5ea3d1bd42
1 changed files with 1 additions and 3 deletions
|
@ -1086,9 +1086,7 @@ def handle_bounce(contact: Contact, alias: Alias, msg: Message, user: User):
|
||||||
try:
|
try:
|
||||||
email_log_id = int(get_header_from_bounce(msg, _EMAIL_LOG_ID_HEADER))
|
email_log_id = int(get_header_from_bounce(msg, _EMAIL_LOG_ID_HEADER))
|
||||||
except Exception:
|
except Exception:
|
||||||
LOG.exception(
|
LOG.warning("cannot get email log id from bounce report, %s", refused_email)
|
||||||
"cannot get email log id from bounce report, %s", refused_email
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
email_log = EmailLog.get(email_log_id)
|
email_log = EmailLog.get(email_log_id)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue