diff --git a/src/drstats/sync.py b/src/drstats/sync.py index 7adbdca..cea36e9 100644 --- a/src/drstats/sync.py +++ b/src/drstats/sync.py @@ -32,7 +32,7 @@ async def get_recent_rants(start_from=1, page_size=10): def get_rants(): return dr.get_rants("recent", page_size, start_from)["rants"] - rants = asyncio.wait_for(loop.run_in_executor(None,get_rants), 15) + rants = await asyncio.wait_for(loop.run_in_executor(None,get_rants), 15) page += 1 for rant in rants: