Skip to main content

format_exception

Function format_exception 

Source
pub fn format_exception(e: &PyErr) -> String
Expand description

Formats a Python exception, including its traceback and chained exceptions.

Falls back to the exception type and message if traceback formatting fails.