Baracchino-Della-Scuola / Bot

Function with cyclomatic complexity higher than threshold PY-R1000
Anti-pattern
Minor
5 months ago7 months old
Errors.on_command_error has a cyclomatic complexity of 48 with "very-high" risk
  6        self.bot = bot
  7
  8    @commands.Cog.listener()
  9    async def on_command_error(self, ctx, error): 10        if isinstance(error, commands.ConversionError):
 11            pass
 12        elif isinstance(error, commands.CheckFailure):