We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 521b424 commit af4c6e2Copy full SHA for af4c6e2
1 file changed
ietf/utils/mail.py
@@ -71,7 +71,7 @@ def send_smtp(msg, bcc=None):
71
addrlist = msg.get_all('To') + msg.get_all('Cc', [])
72
if bcc:
73
addrlist += [bcc]
74
- to = [addr for name, addr in getaddresses(addrlist)]
+ to = [addr for name, addr in getaddresses(addrlist) if addr != '' ]
75
if not to:
76
log("No addressees for email from '%s', subject '%s'. Nothing sent." % (frm, msg.get('Subject', '[no subject]')))
77
else:
0 commit comments