diff --git a/Cogs/Modules/infractions.py b/Cogs/Modules/infractions.py index bc33fc01..04ff79a1 100644 --- a/Cogs/Modules/infractions.py +++ b/Cogs/Modules/infractions.py @@ -223,10 +223,15 @@ async def infract( content=f"{crisis} **{ctx.author.display_name},** I'm sorry to say but the infraction channel is not setup if you wanna use this run `/config`!", allowed_mentions=discord.AllowedMentions.none(), ) - - channel = await self.client.fetch_channel( - Settings.get("Channel").get("channel_id") - ) + try: + channel = await self.client.fetch_channel( + Settings.get("Channel").get("channel_id") + ) + except discord.NotFound: + return await msg.edit( + content=f"{crisis} **{ctx.author.display_name},** hey I can't find your infraction channel it is configured but I can't find it?", + allowed_mentions=discord.AllowedMentions.none(), + ) if not channel: return await msg.edit( content=f"{crisis} **{ctx.author.display_name},** hey I can't find your infraction channel it is configured but I can't find it?",