MCPcopy
hub / github.com/nonebot/nonebot2 / exit

Method exit

nonebot/rule.py:516–519  ·  view source on GitHub ↗
(self, status: int = 0, message: str | None = None)

Source from the content-addressed store, hash-verified

514 super()._print_message(message, file)
515
516 def exit(self, status: int = 0, message: str | None = None):
517 if message:
518 self._print_message(message)
519 raise ParserExit(status=status, message=parser_message.get(None))
520
521
522class ShellCommandRule:

Callers

nothing calls this directly

Calls 3

_print_messageMethod · 0.95
ParserExitClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected