Skip to main content

to_py_error

Function to_py_error 

Source
pub fn to_py_error<T>(error: T) -> PyErr
where T: Error,
Expand description

Convert a Rust error into the generic Python ValueError used by Monarch’s native bindings.