From b711743d6eb4a0ec2654acba8bd0f8eabb6a6396 Mon Sep 17 00:00:00 2001 From: Son Date: Tue, 8 Mar 2022 10:31:20 +0100 Subject: [PATCH] fix --- email_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/email_handler.py b/email_handler.py index 65cc8ec8..9469eeb9 100644 --- a/email_handler.py +++ b/email_handler.py @@ -1902,11 +1902,11 @@ def handle_unsubscribe(envelope: Envelope, msg: Message) -> str: alias_id = int(subject) alias = Alias.get(alias_id) except Exception: - LOG.w("Cannot parse alias from subject %s", msg[headers.SUBJECT]) + LOG.w("Wrong format subject %s", msg[headers.SUBJECT]) return status.E507 if not alias: - LOG.w("Cannot parse alias from subject %s", subject) + LOG.w("Cannot get alias from subject %s", subject) return status.E508 mail_from = envelope.mail_from