Changed a log() call to use unicode string interpolation to handle unicode email address names.

- Legacy-Id: 15999
This commit is contained in:
Henrik Levkowetz 2019-03-05 17:29:43 +00:00
parent 835333c73f
commit 5c6ab60f85

View file

@ -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)