Corrected error where remnants of the last method weren't overwritten
This commit is contained in:
parent
2048865b26
commit
7459d79476
1 changed files with 1 additions and 1 deletions
|
@ -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'):
|
||||
|
|
Loading…
Reference in a new issue