From 76174ba3de5260229863527f6dc2d8621b4e5270 Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Fri, 8 Jul 2022 08:11:31 +0200 Subject: [PATCH] Revert back `DisconnectedChannelError` to inherit from `ChildProcessError` --- src/py/exceptions.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/py/exceptions.rs b/src/py/exceptions.rs index daf9196..c6727a7 100644 --- a/src/py/exceptions.rs +++ b/src/py/exceptions.rs @@ -3,6 +3,7 @@ use pyo3::types::PyTuple; use pyo3::types::PyString; use pyo3::exceptions::PyValueError; use pyo3::exceptions::PyRuntimeError; +use pyo3::exceptions::PyChildProcessError; // --- Macros ---------------------------------------------------------------- @@ -138,7 +139,7 @@ impl SingleClauseError { // --- DisconnectedChannelError ---------------------------------------------- -#[pyclass(module = "fastobo.exceptions", extends = PyRuntimeError)] +#[pyclass(module = "fastobo.exceptions", extends = PyChildProcessError)] pub struct DisconnectedChannelError {} impl_pyerr!(DisconnectedChannelError);