From be33b96458f5d2b7c1445dfb08780cf4824f514d Mon Sep 17 00:00:00 2001 From: Timur Date: Fri, 20 May 2022 20:20:47 +0300 Subject: [PATCH] Fix request method non-awaitable after receiving rate limit (429) --- tweepy/asynchronous/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/asynchronous/client.py b/tweepy/asynchronous/client.py index 3bef8f9..bb88dc8 100644 --- 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: -- 2.25.1