From 58c46ab77685ae4f461255db0d17882bb554aaae Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Wed, 16 Mar 2022 10:43:27 +0100 Subject: [PATCH] prevent exception on trying to send error notifications to admins see also https://stackoverflow.com/a/53385409 --- scripts/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/render.py b/scripts/render.py index f8822fb0..43f15ff8 100755 --- a/scripts/render.py +++ b/scripts/render.py @@ -331,7 +331,7 @@ class JobRenderer(threading.Thread): if DAEMON_ERRORS_SMTP_ENCRYPT == "SSL": mailer = smtplib.SMTP_SSL() else: - mailer = smtplib.SMTP() + mailer = smtplib.SMTP(DAEMON_ERRORS_SMTP_HOST) mailer.connect(DAEMON_ERRORS_SMTP_HOST, DAEMON_ERRORS_SMTP_PORT) if DAEMON_ERRORS_SMTP_ENCRYPT == "TLS": mailer.starttls()