MCPcopy Index your code
hub / github.com/prompt-toolkit/ptpython / display_exception

Method display_exception

src/ptpython/printer.py:85–95  ·  view source on GitHub ↗

Render an exception.

(
        self, e: BaseException, *, highlight: bool, paginate: bool
    )

Source from the content-addressed store, hash-verified

83 self._display_result(result, paginate=paginate)
84
85 def display_exception(
86 self, e: BaseException, *, highlight: bool, paginate: bool
87 ) -> None:
88 """
89 Render an exception.
90 """
91 result = self._insert_out_prompt_and_split_lines(
92 self._format_exception_output(e, highlight=highlight),
93 out_prompt="",
94 )
95 self._display_result(result, paginate=paginate)
96
97 def display_style_and_text_tuples(
98 self,

Callers 2

_format_result_outputMethod · 0.95
_handle_exceptionMethod · 0.80

Calls 3

_display_resultMethod · 0.95

Tested by

no test coverage detected