fix: correct response status check in racoon command
Build and publish ich_iel bot / build (push) Successful in 1m31s

This commit is contained in:
2026-04-25 17:31:04 +02:00
parent 90684ba27f
commit 668eb52673
+1 -1
View File
@@ -170,7 +170,7 @@ async def racoon(message):
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
async with session.get(urls) as response: async with session.get(urls) as response:
image_bytes = await response.read() image_bytes = await response.read()
if response.status_code != 200: if response.status != 200:
await message.channel.send("Failed to fetch racoon image") await message.channel.send("Failed to fetch racoon image")
return return
await message.channel.send(file=fluxer.File(image_bytes, filename="racoon.jpg")) await message.channel.send(file=fluxer.File(image_bytes, filename="racoon.jpg"))