Commit bf3508db authored by Grégory Wisniewski's avatar Grégory Wisniewski

Update runner to display mail server error.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1715 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 78464894
......@@ -313,8 +313,8 @@ class NeoTestRunner(unittest.TestResult):
for recipient in RECIPIENTS:
try:
s.sendmail(SENDER, recipient, mail)
except smtplib.SMTPRecipientsRefused:
print "Mail for %s fails" % recipient
except smtplib.SMTPRecipientsRefused, e:
print "Mail for %s fails : %s" % (recipient, e)
s.close()
if __name__ == "__main__":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment