Changed a log() call to use unicode string interpolation to handle unicode email address names.
- Legacy-Id: 15999
This commit is contained in:
parent
835333c73f
commit
5c6ab60f85
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue