From d3578b77e9b26aa4d4ea8ab575b9998075b6383c Mon Sep 17 00:00:00 2001 From: Caio Begotti Date: Mon, 7 Apr 2014 09:19:28 -0300 Subject: [PATCH] small temporary change so we can debug unicode errors for now (1. there should be a debug/verbose flag option and 2. a better way to log these messages) --- lostphotosfound/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lostphotosfound/utils.py b/lostphotosfound/utils.py index 7710632..62e65a6 100755 --- a/lostphotosfound/utils.py +++ b/lostphotosfound/utils.py @@ -40,5 +40,6 @@ def _charset_decoder(header): header = header[0][0].decode(guessed).encode('utf-8') else: header = header[0][0].decode(header[0][1]).encode('utf-8') + print 'LOG: [decoded header] %s' % repr(header) return header