From aee155d1c13caeebb9e2bc5a828999f4067003b0 Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 6 Jan 2021 14:15:09 -0600 Subject: [PATCH] Reduce extra sleep time for rate limit handling in APIMethod.execute Resolves #1049 --- tweepy/binder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/binder.py b/tweepy/binder.py index cfa437f..0597b3c 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -157,7 +157,7 @@ def bind_api(**config): if sleep_time > 0: if self.wait_on_rate_limit_notify: log.warning("Rate limit reached. Sleeping for: %d" % sleep_time) - time.sleep(sleep_time + 5) # Sleep for few extra sec + time.sleep(sleep_time + 1) # Sleep for extra sec # Apply authentication auth = None -- 2.25.1