From 98bf511443c7754b75dc40f630b4a0273abfa823 Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Wed, 1 Jan 2014 23:50:44 +0000 Subject: [PATCH] BF: Incorrect number of arguments in smtp.py action connect log --- config/action.d/smtp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/action.d/smtp.py b/config/action.d/smtp.py index 26754d41..90b32055 100644 --- a/config/action.d/smtp.py +++ b/config/action.d/smtp.py @@ -87,7 +87,7 @@ class SMTPAction(ActionBase): smtp = smtplib.SMTP() try: self.logSys.debug("Connected to SMTP '%s', response: %i: %s", - *smtp.connect(self.host)) + self.host, *smtp.connect(self.host)) if self.user and self.password: smtp.login(self.user, self.password) failed_recipients = smtp.sendmail( @@ -113,7 +113,8 @@ class SMTPAction(ActionBase): self.logSys.debug("Email '%s' successfully sent", subject) finally: try: - smtp.quit() + self.logSys.debug("Disconnected from '%s', response %i: %s", + self.host, *smtp.quit()) except smtplib.SMTPServerDisconnected: pass # Not connected