Fix unnecesssary elif after return
This commit is contained in:
parent
65ddea7f27
commit
273eb21d2c
|
@ -11,7 +11,7 @@ class ErrorHandler(commands.Cog):
|
||||||
async def on_command_error(self, ctx: commands.Context, error: commands.CommandError):
|
async def on_command_error(self, ctx: commands.Context, error: commands.CommandError):
|
||||||
if isinstance(error, commands.CommandNotFound):
|
if isinstance(error, commands.CommandNotFound):
|
||||||
return
|
return
|
||||||
elif isinstance(error, commands.MissingPermissions):
|
if isinstance(error, commands.MissingPermissions):
|
||||||
message = "You are missing the required permissions to run this command!"
|
message = "You are missing the required permissions to run this command!"
|
||||||
elif isinstance(error, commands.UserInputError):
|
elif isinstance(error, commands.UserInputError):
|
||||||
message = "Something about your input was wrong, please check your input and try again!"
|
message = "Something about your input was wrong, please check your input and try again!"
|
||||||
|
|
Loading…
Reference in New Issue