From 7459d794766f067702404f8a7afd3cb50048a775 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 28 Jan 2017 17:04:57 -0600 Subject: [PATCH] Corrected error where remnants of the last method weren't overwritten --- cogs/utils/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/utils/utilities.py b/cogs/utils/utilities.py index eda5701..4669fe1 100644 --- a/cogs/utils/utilities.py +++ b/cogs/utils/utilities.py @@ -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'):