projects
/
services
/
jenkins-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3b5de5
)
Fix attribute error in SMTPDataError
53/139853/1
author
hyokeun
<hyokeun.jeon@samsung.com>
Fri, 21 Jul 2017 00:34:25 +0000
(09:34 +0900)
committer
hyokeun
<hyokeun.jeon@samsung.com>
Fri, 21 Jul 2017 00:34:25 +0000
(09:34 +0900)
Change-Id: Ia2395b6f224f5597ee857bc629ec87ce845c022d
common/send_mail.py
patch
|
blob
|
history
diff --git
a/common/send_mail.py
b/common/send_mail.py
index
50b1e2f
..
3c3c4fc
100644
(file)
--- a/
common/send_mail.py
+++ b/
common/send_mail.py
@@
-69,7
+69,7
@@
def sendmail(from_email, to_who, msg, smtp_server):
smtp.quit()
print "Email to %s sent succeeded" % to_who
except smtplib.SMTPException, smtpe:
- if 'no valid recipients' in smtpe
.recipients.values()[0][1]
:
+ if 'no valid recipients' in smtpe:
raise MailError('Error: unable to send email: %s' % smtpe)
raise Exception, "Error: unable to send email: %s" % smtpe