again.. :P
authorMagnus Hagander <magnus@hagander.net>
Sun, 1 Jul 2012 20:46:18 +0000 (22:46 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sun, 1 Jul 2012 20:46:18 +0000 (22:46 +0200)
loader/load_message.py

index 678b88fd890ab530eede84fdf29a5a5341227fb4..54c655dc49b37931860bc11334ba7e333117cd77 100755 (executable)
@@ -21,7 +21,7 @@ def log_failed_message(listid, srctype, src, msg, err):
                msgid = msg.msgid
        except:
                msgid = "<unknown>"
-       print "Failed to load message (msgid %s) from %s, spec %s: %s" % (msgid.encode('us-ascii', 'replace'), srctype, src, err.encode('us-ascii', 'replace'))
+       print "Failed to load message (msgid %s) from %s, spec %s: %s" % (msgid.encode('us-ascii', 'replace'), srctype, src, unicode(err).encode('us-ascii', 'replace'))
 
        # We also put the data in the db. This happens in the main transaction
        # so if the whole script dies, it goes away...