mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
removed exception attributes
This commit is contained in:
parent
a42347e6e7
commit
a89bfcf342
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user