Fix unnecesssary elif after return

This commit is contained in:
ekzyis 2021-09-24 22:33:27 +02:00
parent 65ddea7f27
commit 273eb21d2c
1 changed files with 1 additions and 1 deletions

View File

@ -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!"