From 5e1cc38a90fa830c3b248edf23bb1cc116879a56 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 28 Jan 2021 19:39:11 -0600 Subject: [PATCH] Remove APIMethod.retry_delay --- tweepy/binder.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tweepy/binder.py b/tweepy/binder.py index 032b3da..08e8590 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -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 -- 2.25.1