From 39c20a1f36d4e00c39d4ed8d87f7a62a410d39b6 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Sat, 20 Jul 2024 16:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=BC=82=E5=B8=B8=E7=9F=AD?= =?UTF-8?q?=E4=BF=A1=E9=87=8D=E5=A4=8D=E5=8F=91=E9=80=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto_email/error_email.py | 1 + 1 file changed, 1 insertion(+) diff --git a/auto_email/error_email.py b/auto_email/error_email.py index dab8566..2f682dd 100644 --- a/auto_email/error_email.py +++ b/auto_email/error_email.py @@ -67,6 +67,7 @@ def send_error_email(program_name, error_name, error_detail): mail.sendmail(sender, receivers, massage.as_string()) # 发送邮件 mail.quit() logging.info("成功发送了一封邮件到" + receivers_str) + break except smtplib.SMTPException: if i == retry_times - 1: logging.warning("邮件发送失败!")