Use super in TweepError initialization
authorHarmon <Harmon758@gmail.com>
Sat, 4 May 2019 04:46:22 +0000 (23:46 -0500)
committerHarmon <Harmon758@gmail.com>
Sat, 4 May 2019 04:46:22 +0000 (23:46 -0500)
tweepy/error.py

index f7d5894454ea0f138b8084f4b65f8482dac3ba53..165d049da820bca3817e738979008803e92b285a 100644 (file)
@@ -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