use warning level when not able to parse email-log-id

This commit is contained in:
Son NK 2020-09-03 15:42:50 +02:00
parent f27a448d1b
commit 0dbc755790

View file

@ -1050,7 +1050,7 @@ def handle_bounce(contact: Contact, alias: Alias, msg: Message, user: User):
try:
email_log_id = int(orig_msg[_EMAIL_LOG_ID_HEADER])
except TypeError:
LOG.exception(
LOG.warning(
"cannot parse email log from original message header %s",
orig_msg[_EMAIL_LOG_ID_HEADER],
)