From a89bfcf3428c91a1f8a5a7cf368938a31f901637 Mon Sep 17 00:00:00 2001 From: Todd Ingarfield Date: Thu, 24 Sep 2015 10:55:24 -0500 Subject: [PATCH] removed exception attributes --- homeassistant/components/notify/smtp.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/notify/smtp.py b/homeassistant/components/notify/smtp.py index c939737daa8..b66ade255f1 100644 --- a/homeassistant/components/notify/smtp.py +++ b/homeassistant/components/notify/smtp.py @@ -171,7 +171,6 @@ class MailNotificationService(BaseNotificationService): self.mail.sendmail(self._sender, self.recipient, msg.as_string()) break - except smtplib.SMTPException as err: - _LOGGER.warning('SMTP Exception sending mail: {0}:{1}' - .format(err.smtp_code, err.smtp_error)) + except smtplib.SMTPException: + _LOGGER.warning('SMTPException sending mail: retrying connection') self.connect()