From 2396a55264ebf1f227b559633b64933baa200b2f Mon Sep 17 00:00:00 2001 From: inactivist Date: Thu, 8 Nov 2012 09:37:27 -0800 Subject: [PATCH] Proposed fix for issue #193. Call base Exception constructor. --- tweepy/error.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tweepy/error.py b/tweepy/error.py index 8a760bb..753e2fe 100644 --- a/tweepy/error.py +++ b/tweepy/error.py @@ -8,6 +8,7 @@ class TweepError(Exception): def __init__(self, reason, response=None): self.reason = unicode(reason) self.response = response + Exception.__init__(self, reason) def __str__(self): return self.reason -- 2.25.1