From: Harmon Date: Wed, 6 Jan 2021 20:15:09 +0000 (-0600) Subject: Reduce extra sleep time for rate limit handling in APIMethod.execute X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=aee155d1c13caeebb9e2bc5a828999f4067003b0;p=tweepy.git Reduce extra sleep time for rate limit handling in APIMethod.execute Resolves #1049 --- 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