1
0
Fork 0
mirror of synced 2024-05-29 16:59:42 +12:00

Corrected issue where coroutine wasn't being awaited

This commit is contained in:
phxntxm 2016-10-05 13:46:00 -05:00
parent 13251795a7
commit 5176ef3323

View file

@ -31,7 +31,7 @@ class Links:
'q': query}
async with self.session.get(url, params=params, headers=self.headers) as r:
data = r.json()
data = await r.json()
try:
result = data['items'][0]