From: Timur Date: Fri, 20 May 2022 17:20:47 +0000 (+0300) Subject: Fix request method non-awaitable after receiving rate limit (429) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=be33b96458f5d2b7c1445dfb08780cf4824f514d;p=tweepy.git Fix request method non-awaitable after receiving rate limit (429) --- 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: