projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef3a4d4
)
Fix request method non-awaitable after receiving rate limit (429)
author
Timur
<asapov.t@etton.ru>
Fri, 20 May 2022 17:20:47 +0000
(20:20 +0300)
committer
Timur
<asapov.t@etton.ru>
Fri, 20 May 2022 17:20:47 +0000
(20:20 +0300)
tweepy/asynchronous/client.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/asynchronous/client.py
b/tweepy/asynchronous/client.py
index 3bef8f98679123dc7f9f8fde88f8212993ee70d3..bb88dc87185cd7fd5de3582d864f649d88b807a1 100644
(file)
--- a/
tweepy/asynchronous/client.py
+++ b/
tweepy/asynchronous/client.py
@@
-127,7
+127,7
@@
class AsyncBaseClient(BaseClient):
f"Sleeping for {sleep_time} seconds."
)
await asyncio.sleep(sleep_time)
- return self.request(method, route, params, json, user_auth)
+ return
await
self.request(method, route, params, json, user_auth)
else:
raise TooManyRequests(response, response_json=response_json)
if response.status >= 500: