text: from cardinal.decorators import command
  
  
  class TestCommandRaisesExceptionPlugin:
      def __init__(self):
          self.command_calls = []
  
      @command('command')
      def command(self, *args):
          self.command_calls.append(args)
          raise Exception()
  
  
  def setup():
      return TestCommandRaisesExceptionPlugin()
  