Fix weird NotFound Bug
This commit is contained in:
parent
1f3e4955cb
commit
e54c4f7a01
1 changed files with 4 additions and 1 deletions
|
@ -223,7 +223,10 @@ class Ollama(commands.Cog):
|
||||||
color=discord.Color.blurple(),
|
color=discord.Color.blurple(),
|
||||||
timestamp=discord.utils.utcnow()
|
timestamp=discord.utils.utcnow()
|
||||||
)
|
)
|
||||||
await ctx.edit(embed=embed)
|
try:
|
||||||
|
await ctx.edit(embed=embed)
|
||||||
|
except discord.NotFound:
|
||||||
|
await ctx.respond(embed=embed)
|
||||||
self.log.debug("Beginning to generate response.")
|
self.log.debug("Beginning to generate response.")
|
||||||
async with session.post(
|
async with session.post(
|
||||||
"/api/generate",
|
"/api/generate",
|
||||||
|
|
Loading…
Reference in a new issue