From 7b8b8ad2d17dac76d5e81b76f0eccd0744e0f0d5 Mon Sep 17 00:00:00 2001 From: Mark Hepburn Date: Mon, 13 Nov 2023 13:48:00 +1100 Subject: [PATCH] Bugfix: remember to return value --- daily_pinboard.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daily_pinboard.py b/daily_pinboard.py index a7dea4f..469d01b 100755 --- a/daily_pinboard.py +++ b/daily_pinboard.py @@ -67,6 +67,8 @@ def create_msg(self, msg_html): msg['To'] = self.email msg.attach(MIMEText(msg_html, 'html')) + return msg + def send_msg(self, msg): with smtplib.SMTP_SSL(host=self.server, port=465) as server: server.login(self.username, self.password)