[Mailman-Developers] Problem with runner logger with unicode

Aurelien Bompard aurelien at bompard.org
Tue Dec 3 13:56:18 CET 2013


So, if I understand correctly, Storm add to its exception the error
message it gets from PostgreSQL, which is a bytestream (encoded in
UTF-8 on your system). But Mailman sends its logs to the logger as
unicode, thus the exception must be converted to unicode, and that's
where the UnicodeDecodeError is raised.
What can we do? Should we try to decode the Storm exception using the
default system encoding before sending it to the logger?

Aurélien


More information about the Mailman-Developers mailing list