From aed4916999590f286819b60795429b5cb768e8b5 Mon Sep 17 00:00:00 2001 From: Purpur <43528123+Pemigrade@users.noreply.github.com> Date: Fri, 5 Feb 2021 22:45:49 -0600 Subject: [PATCH] Specify no content type for aiohttp reqs --- cogs/timings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/timings.py b/cogs/timings.py index 807dc02..5fe3bb3 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: - request_raw = await response.json() + request_raw = await response.json(content_type=None) async with session.get(timings_json) as response: - request = await response.json() + request = await response.json(content_type=None) if request is None or request_raw is None: embed_var.add_field(name="❌ Invalid report", value="Create a new timings report.")