1
0
Fork 0
mirror of synced 2024-06-28 19:20:34 +12:00

Corrected error where .json() wasn't being awaited)

This commit is contained in:
phxntxm 2016-08-19 02:00:50 -05:00
parent 04e08ec177
commit 9fda303ab1

View file

@ -51,7 +51,7 @@ class Steam:
except ValueError:
steam_id = await self.find_id(user)
await self.bot.say("User given was: {}\nFound steam_id")
await self.bot.say("User given was: {}\nFound steam_id: {}".format(user, steam_id))
if steam_id is None:
await self.bot.say("Sorry, couldn't find that Steam user!")
@ -59,7 +59,7 @@ class Steam:
url = "{}&appid=730&steamid={}".format(base_url, steam_id)
async with self.session.get(url, headers=self.headers) as response:
data = response.json()
data = await response.json()
stuff_to_print = ['total_kills', 'total_deaths', 'total_wins', 'total_mvps']
stats = "\n".join(