1
0
Fork 0
mirror of synced 2024-06-26 10:10:44 +12:00

Corrected error where remnants of the last method weren't overwritten

This commit is contained in:
Phxntxm 2017-01-28 17:04:57 -06:00
parent 2048865b26
commit 7459d79476

View file

@ -61,7 +61,7 @@ async def download_image(url):
return None
# Then wrap it in a BytesIO object, to be used like an actual file
image = io.BytesIO(await r.read())
image = io.BytesIO(bts)
return image
async def request(url, *, headers=None, payload=None, method='GET', attr='json'):