MCPcopy Create free account
hub / github.com/bloomberg/pystack / _exit_with_code

Function _exit_with_code

src/pystack/__main__.py:67–70  ·  view source on GitHub ↗
(exception: BaseException)

Source from the content-addressed store, hash-verified

65
66
67def _exit_with_code(exception: BaseException) -> NoReturn: # pragma: no cover
68 if isinstance(exception, InvalidPythonProcess):
69 sys.exit(2)
70 sys.exit(1)
71
72
73def produce_error_message(exception: BaseException) -> str:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected