projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf2c82d
)
Reduce extra sleep time for rate limit handling in APIMethod.execute
author
Harmon
<Harmon758@gmail.com>
Wed, 6 Jan 2021 20:15:09 +0000
(14:15 -0600)
committer
Harmon
<Harmon758@gmail.com>
Wed, 6 Jan 2021 20:15:09 +0000
(14:15 -0600)
Resolves #1049
tweepy/binder.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/binder.py
b/tweepy/binder.py
index cfa437f95c08ec30474ae4db6accdfd7a8ddb887..0597b3cb8fe0ae3174127e14f67caa93af9c1a5d 100644
(file)
--- 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