Fix weird NotFound Bug

This commit is contained in:
Nexus 2024-01-09 22:54:37 +00:00
parent 1f3e4955cb
commit e54c4f7a01

View file

@ -223,7 +223,10 @@ class Ollama(commands.Cog):
color=discord.Color.blurple(),
timestamp=discord.utils.utcnow()
)
try:
await ctx.edit(embed=embed)
except discord.NotFound:
await ctx.respond(embed=embed)
self.log.debug("Beginning to generate response.")
async with session.post(
"/api/generate",