BF: Incorrect number of arguments in smtp.py action connect log

pull/549/head
Steven Hiscocks 11 years ago
parent 776b65f73e
commit 98bf511443

@ -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

Loading…
Cancel
Save