From 273eb21d2c8710ffa9d8b5749329a0479c2c3ca8 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Fri, 24 Sep 2021 22:33:27 +0200 Subject: [PATCH] Fix unnecesssary elif after return --- src/error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.py b/src/error.py index 553dfae..2b4b457 100644 --- a/src/error.py +++ b/src/error.py @@ -11,7 +11,7 @@ class ErrorHandler(commands.Cog): async def on_command_error(self, ctx: commands.Context, error: commands.CommandError): if isinstance(error, commands.CommandNotFound): return - elif isinstance(error, commands.MissingPermissions): + if isinstance(error, commands.MissingPermissions): message = "You are missing the required permissions to run this command!" elif isinstance(error, commands.UserInputError): message = "Something about your input was wrong, please check your input and try again!"