Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrownstein committed Apr 11, 2018
1 parent 167b144 commit c7ad225
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libpius/mailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ def _send_mail(self, to, msg):
# BCC the user...
env_to = [msg['To'], self.mail]

smtp.sendmail(self.mail, env_to, msg.as_string())
smtp.quit()
except smtplib.SMTPException as emsg:
raise MailSendError(emsg)
except socket.error as emsg:
raise MailSendError(emsg)
smtp.sendmail(self.mail, env_to, msg.as_string())
smtp.quit()
except smtplib.SMTPException as emsg:
raise MailSendError(emsg)
except socket.error as emsg:
raise MailSendError(emsg)

0 comments on commit c7ad225

Please sign in to comment.