From adeb3108b1d458e806503615255c1c8f1c010ada Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Fri, 19 Apr 2024 16:32:52 +0100 Subject: [PATCH] fucking vscode linter --- cogs/other.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/other.py b/cogs/other.py index 8ef31dd..9a6e392 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -752,7 +752,7 @@ class OtherCog(commands.Cog): async def save(self, f): async with httpx.AsyncClient() as client: response = None - for url in urls: + for url in self.urls: try: response = await client.get(url) response.raise_for_status() @@ -760,7 +760,7 @@ class OtherCog(commands.Cog): continue f.write(await response.read()) else: - raise discord.HTTPException(response, "failed to download any of %s" % ", ".join(urls)) + raise discord.HTTPException(response, "failed to download any of %s" % ", ".join(self.urls)) async def read(self) -> bytes: b = io.BytesIO()