Skip to content

Commit 5c6ab60

Browse files
committed
Changed a log() call to use unicode string interpolation to handle unicode email address names.
- Legacy-Id: 15999
1 parent 835333c commit 5c6ab60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/utils/mail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def send_smtp(msg, bcc=None):
8989
addrlist += [bcc]
9090
to = [addr for name, addr in getaddresses(addrlist) if ( addr != '' and not addr.startswith('unknown-email-') )]
9191
if not to:
92-
log("No addressees for email from '%s', subject '%s'. Nothing sent." % (frm, msg.get('Subject', '[no subject]')))
92+
log(u"No addressees for email from '%s', subject '%s'. Nothing sent." % (frm, msg.get('Subject', '[no subject]')))
9393
else:
9494
if test_mode:
9595
outbox.append(msg)

0 commit comments

Comments
 (0)