From: inactivist Date: Thu, 8 Nov 2012 17:37:27 +0000 (-0800) Subject: Proposed fix for issue #193. Call base Exception constructor. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2396a55264ebf1f227b559633b64933baa200b2f;p=tweepy.git Proposed fix for issue #193. Call base Exception constructor. --- 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