From f76086c1900bce156291e2180827570477342f70 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 3 May 2019 23:46:22 -0500 Subject: [PATCH] Use super in TweepError initialization --- tweepy/error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1