Python - Expose PostProcessors

This commit is contained in:
Anthony MOI
2019-12-16 18:46:14 -05:00
parent 1a90cc96e5
commit 93a74aa53a
7 changed files with 110 additions and 2 deletions

View File

@ -9,6 +9,9 @@ impl PyError {
pub fn from(s: &str) -> Self {
PyError(String::from(s))
}
pub fn into_pyerr(self) -> PyErr {
exceptions::Exception::py_err(format!("{}", self))
}
}
impl Display for PyError {
fn fmt(&self, fmt: &mut Formatter) -> FmtResult {