pub fn pyerr_to_plugin_error(err: PyErr) -> PluginErrorExpand description
Convert a PyErr into a PluginError, preserving class name, message,
and a formatted traceback in details.
Acquires the GIL internally, so callers can pass a PyErr they captured
outside Python::with_gil (the typical case for ? propagation).