Remove APIMethod.retry_delay
authorHarmon <Harmon758@gmail.com>
Fri, 29 Jan 2021 01:39:11 +0000 (19:39 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 29 Jan 2021 01:39:11 +0000 (19:39 -0600)
tweepy/binder.py

index 032b3daa956600a310b4d5f726a30cc1eb5c8059..08e8590c42e86d2bde3c4b4f6f2516eb55b9b324 100644 (file)
@@ -39,8 +39,6 @@ class APIMethod:
 
         self.post_data = kwargs.pop('post_data', None)
         self.json_payload = kwargs.pop('json_payload', None)
-        self.retry_delay = kwargs.pop('retry_delay',
-                                        api.retry_delay)
         self.retry_errors = kwargs.pop('retry_errors',
                                         api.retry_errors)
         self.wait_on_rate_limit = kwargs.pop('wait_on_rate_limit',
@@ -175,7 +173,7 @@ class APIMethod:
             if reset_time is not None:
                 self._reset_time = int(reset_time)
 
-            retry_delay = self.retry_delay
+            retry_delay = self.api.retry_delay
             if resp.status_code in (420, 429) and self.wait_on_rate_limit:
                 if self._remaining_calls == 0:
                     # If ran out of calls before waiting switching retry last call