Skip to main content

to_pykey_err

Function to_pykey_err 

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

Converts any type that implements Display to a Python KeyError.

ยงErrors

Returns a Python error with the error string.