diff options
-rw-r--r-- | bot/exts/utils/snekbox.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/utils/snekbox.py b/bot/exts/utils/snekbox.py index 53012a5e1..8a2e68b28 100644 --- a/bot/exts/utils/snekbox.py +++ b/bot/exts/utils/snekbox.py @@ -402,15 +402,16 @@ class Snekbox(Cog): return None, None code = await self.get_code(new_message, ctx.command) - await ctx.message.clear_reaction(REDO_EMOJI) with contextlib.suppress(HTTPException): + await ctx.message.clear_reaction(REDO_EMOJI) await response.delete() if code is None: return None, None except asyncio.TimeoutError: - await ctx.message.clear_reaction(REDO_EMOJI) + with contextlib.suppress(HTTPException): + await ctx.message.clear_reaction(REDO_EMOJI) return None, None codeblocks = await CodeblockConverter.convert(ctx, code) |