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