Browse Source

Fix bugs for async bot

pull/16/head
Purpur 4 years ago
committed by GitHub
parent
commit
7f04826e56
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cogs/timings.py

4
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.")

Loading…
Cancel
Save