From: Josh Roesslein Date: Sun, 17 Oct 2010 04:03:15 +0000 (-0500) Subject: Use unicode for Tweepy error messges. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=778d88bb8c2472278386e80a420ef8a37b70d036;p=tweepy.git Use unicode for Tweepy error messges. Closes #38 --- 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):