From 5468a3133fe42bcb217375de80c3b336f8aba8be Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 4 Aug 2020 14:47:50 +0100 Subject: [PATCH] Added error handling for Error messages --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index ecdbf3cb..fdeef730 100644 --- a/main.py +++ b/main.py @@ -475,7 +475,10 @@ async def on_command_not_found(ctx): embed = Embed(description=f"Command Not Found! ❌ Please use **{ctx.prefix}help** to see all commands", colour=enso_embedmod_colours) - await ctx.send(embed=embed) + try: + await ctx.send(embed=embed) + except Exception: + print("Error: Error Handling Message Could Not Be Sent") async def on_command_cooldown(ctx, error):