aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ionite34 <[email protected]>2022-12-14 16:32:46 +0800
committerGravatar ionite34 <[email protected]>2022-12-14 16:32:46 +0800
commit7deda3486b0a8bf324c77f48a10b010899b7e75d (patch)
tree6c81ece3e62a9d84bbb9a932a3a58e2b648edf22
parentRevert typo (diff)
Suppress HTTPException for redo emoji
-rw-r--r--bot/exts/utils/snekbox.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/utils/snekbox.py b/bot/exts/utils/snekbox.py
index 2f88133e3..e43f5a5b1 100644
--- a/bot/exts/utils/snekbox.py
+++ b/bot/exts/utils/snekbox.py
@@ -463,7 +463,8 @@ class Snekbox(Cog):
return None
except asyncio.TimeoutError:
- await ctx.message.clear_reaction(REDO_EMOJI)
+ with contextlib.suppress(HTTPException):
+ await ctx.message.clear_reaction(REDO_EMOJI)
return None
codeblocks = await CodeblockConverter.convert(ctx, code)