Skip to content

Commit

Permalink
Merge pull request #1902 from Myyyth/master
Browse files Browse the repository at this point in the history
Fix request method non-awaitable after receiving rate limit (429)
  • Loading branch information
Harmon758 committed May 20, 2022
2 parents 30ebf01 + be33b96 commit d4f055e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tweepy/asynchronous/client.py
Expand Up @@ -127,7 +127,7 @@ async def request(
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:
Expand Down

0 comments on commit d4f055e

Please sign in to comment.