Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit da0c261

Browse files
committed
Merge pull request #430 from OpenBazaar/except-smtp-settings
Don't kill messages due to bad SMTP settings
2 parents 068bfa9 + 4998b6b commit da0c261

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

market/smtpnotification.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def send(self, subject, body):
5656
server.login(self.username, self.password)
5757

5858
server.sendmail(self.sender, self.recipient, msg.as_string())
59+
server.quit()
5960
except SMTPAuthenticationError as e:
61+
self.log.error('Authentication Error: %s' % e)
62+
except Exception as e:
6063
self.log.error(e)
61-
print e
62-
63-
server.quit()

0 commit comments

Comments
 (0)