Various test fixes
This commit is contained in:
+2
-2
@@ -13,7 +13,6 @@ from discord import Message
|
||||
from discord.ext import commands
|
||||
|
||||
from vibe_bot import llama_wrapper, tts
|
||||
from vibe_bot.tts import DEFAULT_LANG
|
||||
from vibe_bot.config import (
|
||||
CHAT_ENDPOINT,
|
||||
CHAT_ENDPOINT_KEY,
|
||||
@@ -35,6 +34,7 @@ from vibe_bot.config import (
|
||||
)
|
||||
from vibe_bot.database import CustomBotManager, get_database
|
||||
from vibe_bot.tools import get_channel_members, get_channel_members_impl
|
||||
from vibe_bot.tts import DEFAULT_LANG
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from discord.ext.commands import Bot
|
||||
@@ -771,7 +771,7 @@ async def retcon(ctx: CommandsContext[Bot], *, message: str) -> None:
|
||||
for discord_image in ctx.message.attachments:
|
||||
image_url = discord_image.url
|
||||
try:
|
||||
response = requests.get(image_url, timeout=30)
|
||||
response = requests.get(image_url, timeout=30) # noqa: ASYNC210
|
||||
image_data = response.content
|
||||
except requests.RequestException as e:
|
||||
logger.warning("Failed to download image from %s: %s", image_url, e)
|
||||
|
||||
Reference in New Issue
Block a user