summaryrefslogtreecommitdiffstats
path: root/askbot/mail
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-21 19:30:02 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-21 19:30:21 -0400
commit08a4b7328036c0d27c03418c9933e89465c7dec3 (patch)
tree8e63e6e03e157998ddefa94424f91529ef7c66ec /askbot/mail
parent637052ee0353087af95eb0b9dc0754c875db30f4 (diff)
downloadaskbot-08a4b7328036c0d27c03418c9933e89465c7dec3.tar.gz
askbot-08a4b7328036c0d27c03418c9933e89465c7dec3.tar.bz2
askbot-08a4b7328036c0d27c03418c9933e89465c7dec3.zip
forced utf8 encoding on all stderr printing
Diffstat (limited to 'askbot/mail')
-rw-r--r--askbot/mail/lamson_handlers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/askbot/mail/lamson_handlers.py b/askbot/mail/lamson_handlers.py
index 8bfa86f7..65e5fde0 100644
--- a/askbot/mail/lamson_handlers.py
+++ b/askbot/mail/lamson_handlers.py
@@ -160,9 +160,9 @@ def process_reply(func):
received the notification.")
except Exception, e:
import sys
- sys.stderr.write(str(e))
+ sys.stderr.write(unicode(e).encode('utf-8'))
import traceback
- sys.stderr.write(traceback.format_exc())
+ sys.stderr.write(unicode(traceback.format_exc()).encode('utf-8'))
if error is not None:
template = get_template('email/reply_by_email_error.html')