def poll_error(self, ctx, error): if isinstance(error, commands.CommandInvokeError) and isinstance(error.original, discord.NotFound): error.should_suppress = True