From 93009158a86561b0cd68f44a7a5a49ebb358bd1e Mon Sep 17 00:00:00 2001 From: Son Date: Wed, 16 Mar 2022 09:05:57 +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 5114278e..1ff164c8 100644 --- a/email_handler.py +++ b/email_handler.py @@ -2375,8 +2375,8 @@ def handle(envelope: Envelope, msg: Message) -> str: [is_success for (is_success, smtp_status) in res if not is_success] ) - if nb_success > 0 and nb_non_success: - LOG.e(f"some deliveries fail and some success, {mail_from}, {rcpt_tos}") + if nb_success > 0 and nb_non_success > 0: + LOG.e(f"some deliveries fail and some success, {mail_from}, {rcpt_tos}, {res}") for (is_success, smtp_status) in res: # Consider all deliveries successful if 1 delivery is successful