Log exception when handle_bounce_deprecated is used

This commit is contained in:
Son NK 2021-01-13 11:03:44 +01:00
parent c431abd917
commit f4218a0693

View file

@ -1135,6 +1135,7 @@ def handle_bounce_deprecated(contact: Contact, alias: Alias, msg: Message, user:
Handle bounce that is sent to the reverse-alias
Happens when an email cannot be forwarded to a mailbox
"""
LOG.exception("handle_bounce_deprecated shouldn't be called %s %s", contact, alias)
disable_alias_link = f"{URL}/dashboard/unsubscribe/{alias.id}"
# Store the bounced email