##// END OF EJS Templates
email: Catch exceptions during send....
David Soria Parra -
r9246:2de7d965 default
parent child Browse files
Show More
@@ -36,7 +36,10 b' def _smtp(ui):'
36 if username and password:
36 if username and password:
37 ui.note(_('(authenticating to mail server as %s)\n') %
37 ui.note(_('(authenticating to mail server as %s)\n') %
38 (username))
38 (username))
39 s.login(username, password)
39 try:
40 s.login(username, password)
41 except smtplib.SMTPException, inst:
42 raise util.Abort(inst)
40
43
41 def send(sender, recipients, msg):
44 def send(sender, recipients, msg):
42 try:
45 try:
General Comments 0
You need to be logged in to leave comments. Login now