(self, e: BaseException)
| 388 | ) |
| 389 | |
| 390 | def _handle_exception(self, e: BaseException) -> None: |
| 391 | # Required for pdb.post_mortem() to work. |
| 392 | t, v, tb = sys.exc_info() |
| 393 | sys.last_type, sys.last_value, sys.last_traceback = t, v, tb |
| 394 | |
| 395 | self._get_output_printer().display_exception( |
| 396 | e, |
| 397 | highlight=self.enable_syntax_highlighting, |
| 398 | paginate=self.enable_pager, |
| 399 | ) |
| 400 | |
| 401 | def _handle_keyboard_interrupt(self, e: KeyboardInterrupt) -> None: |
| 402 | output = self.app.output |
no test coverage detected