From 778d88bb8c2472278386e80a420ef8a37b70d036 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Sat, 16 Oct 2010 23:03:15 -0500 Subject: [PATCH] Use unicode for Tweepy error messges. Closes #38 --- tweepy/error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/error.py b/tweepy/error.py index f66f5d2..8a760bb 100644 --- a/tweepy/error.py +++ b/tweepy/error.py @@ -6,7 +6,7 @@ class TweepError(Exception): """Tweepy exception""" def __init__(self, reason, response=None): - self.reason = str(reason) + self.reason = unicode(reason) self.response = response def __str__(self): -- 2.25.1