Use unicode for Tweepy error messges.
authorJosh Roesslein <jroesslein@gmail.com>
Sun, 17 Oct 2010 04:03:15 +0000 (23:03 -0500)
committerJosh Roesslein <jroesslein@gmail.com>
Sun, 17 Oct 2010 04:03:15 +0000 (23:03 -0500)
Closes #38

tweepy/error.py

index f66f5d2aebb4a3cf254e4e4a556ec592b66fb8e5..8a760bb5d30827f23ed1a20e19a7f6ed9cbc5fc2 100644 (file)
@@ -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):