From 7f04826e56a3622384d3ae1a1a77e70bf4dbe129 Mon Sep 17 00:00:00 2001 From: Purpur <43528123+Pemigrade@users.noreply.github.com> Date: Fri, 5 Feb 2021 22:42:59 -0600 Subject: [PATCH] Fix bugs for async bot --- cogs/timings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/timings.py b/cogs/timings.py index 73ca570..807dc02 100644 --- a/cogs/timings.py +++ b/cogs/timings.py @@ -59,9 +59,9 @@ class Timings(commands.Cog): async with aiohttp.ClientSession() as session: async with session.get(timings_url_raw) as response: - await request_raw = response.json() + request_raw = await response.json() async with session.get(timings_json) as response: - await request = response.json() + request = await response.json() if request is None or request_raw is None: embed_var.add_field(name="❌ Invalid report", value="Create a new timings report.")