docs: fixed typo in error_handling.md

This commit is contained in:
Mike Roberts 2022-09-24 14:03:13 +01:00
parent 86ce4d1a13
commit 4275abff0c
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ struct MyOtherError(OtherError);
impl From<MyOtherError> for PyErr { impl From<MyOtherError> for PyErr {
fn from(error: MyOtherError) -> Self { fn from(error: MyOtherError) -> Self {
PyValueError::new_err(self.0.message()) PyValueError::new_err(error.0.message())
} }
} }