From: Harmon Date: Sat, 4 May 2019 04:46:22 +0000 (-0500) Subject: Use super in TweepError initialization X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f76086c1900bce156291e2180827570477342f70;p=tweepy.git Use super in TweepError initialization --- diff --git a/tweepy/error.py b/tweepy/error.py index f7d5894..165d049 100644 --- a/tweepy/error.py +++ b/tweepy/error.py @@ -13,7 +13,7 @@ class TweepError(Exception): self.reason = six.text_type(reason) self.response = response self.api_code = api_code - Exception.__init__(self, reason) + super(TweepError, self).__init__(self, reason) def __str__(self): return self.reason