Function to_pyvalue_err

Source
pub fn to_pyvalue_err(e: impl Display) -> PyErr
Expand description

Converts any type that implements Display to a Python ValueError.

ยงErrors

Returns a Python error with the error string.