use warning level when cannot parse mailbox-id

This commit is contained in:
Son NK 2020-09-02 10:26:46 +02:00
parent 5ea3d1bd42
commit d97966a2e8
1 changed files with 1 additions and 1 deletions

View File

@ -1067,7 +1067,7 @@ def handle_bounce(contact: Contact, alias: Alias, msg: Message, user: User):
try:
mailbox_id = int(get_header_from_bounce(msg, _MAILBOX_ID_HEADER))
except Exception:
LOG.exception("cannot get mailbox-id from bounce report, %s", refused_email)
LOG.warning("cannot get mailbox-id from bounce report, %s", refused_email)
else:
mailbox = Mailbox.get(mailbox_id)
if not mailbox or mailbox.user_id != user.id: