mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
fucking vscode linter
This commit is contained in:
parent
952b614462
commit
adeb3108b1
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue