From df48d32fb9cb6ded6ca77e182b154611b606fe10 Mon Sep 17 00:00:00 2001 From: ChrisJL Date: Fri, 27 May 2022 22:59:25 +0100 Subject: Catch correct exception in clean cog (#2176) Co-authored-by: Xithrius <15021300+Xithrius@users.noreply.github.com> --- bot/exts/moderation/clean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/moderation/clean.py b/bot/exts/moderation/clean.py index 0f14f515e..fedb787f9 100644 --- a/bot/exts/moderation/clean.py +++ b/bot/exts/moderation/clean.py @@ -443,7 +443,7 @@ class Clean(Cog): if log_url and is_mod_channel(ctx.channel): try: await ctx.reply(success_message) - except errors.NotFound: + except errors.HTTPException: await ctx.send(success_message) elif log_url: if mods := self.bot.get_channel(Channels.mods): -- cgit v1.2.3