def execute(self, nick, args, tool, sheriff): tool.irc().post("Restarting...") raise TerminateQueue()
def test_terminating_error(self): self._test_terminating_queue(KeyboardInterrupt(), "User terminated queue.") self._test_terminating_queue(TerminateQueue(), "TerminateQueue exception received.")