fix uWSGI spooling for Python3

This commit is contained in:
Martin Zimmermann 2014-05-15 10:41:33 +02:00
parent 4ee509ed02
commit 5c91a84951

View File

@ -47,7 +47,7 @@ class SMTP(object):
if uwsgi:
def spooler(args):
try:
self._sendmail(args["subject"].decode("utf-8"),
self._sendmail(args[b"subject"].decode("utf-8"),
args["body"].decode("utf-8"))
except smtplib.SMTPConnectError:
return uwsgi.SPOOL_RETRY