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

Commit 2291541

Browse files
committed
Don't kill messages due to bad SMTP settings
1 parent 068bfa9 commit 2291541

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

market/smtpnotification.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ 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:
6061
self.log.error(e)
61-
print e
62-
63-
server.quit()
62+
pass
63+
except Exception as e:
64+
self.log.error(e)
65+
pass

0 commit comments

Comments
 (0)