From 5c6ab60f8562443377d72f80b9ecfdbd92a78021 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 5 Mar 2019 17:29:43 +0000 Subject: [PATCH] Changed a log() call to use unicode string interpolation to handle unicode email address names. - Legacy-Id: 15999 --- ietf/utils/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/utils/mail.py b/ietf/utils/mail.py index 0d2bd1ceb..61b4fe315 100644 --- a/ietf/utils/mail.py +++ b/ietf/utils/mail.py @@ -89,7 +89,7 @@ def send_smtp(msg, bcc=None): addrlist += [bcc] to = [addr for name, addr in getaddresses(addrlist) if ( addr != '' and not addr.startswith('unknown-email-') )] if not to: - log("No addressees for email from '%s', subject '%s'. Nothing sent." % (frm, msg.get('Subject', '[no subject]'))) + log(u"No addressees for email from '%s', subject '%s'. Nothing sent." % (frm, msg.get('Subject', '[no subject]'))) else: if test_mode: outbox.append(msg)