fucking vscode linter

This commit is contained in:
Nexus 2024-04-19 16:32:52 +01:00 committed by GitHub
parent 952b614462
commit adeb3108b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -752,7 +752,7 @@ class OtherCog(commands.Cog):
async def save(self, f): async def save(self, f):
async with httpx.AsyncClient() as client: async with httpx.AsyncClient() as client:
response = None response = None
for url in urls: for url in self.urls:
try: try:
response = await client.get(url) response = await client.get(url)
response.raise_for_status() response.raise_for_status()
@ -760,7 +760,7 @@ class OtherCog(commands.Cog):
continue continue
f.write(await response.read()) f.write(await response.read())
else: 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: async def read(self) -> bytes:
b = io.BytesIO() b = io.BytesIO()