fix: removed filler error

This commit is contained in:
zaaarf 2024-08-06 00:16:52 +02:00
parent f9784e961d
commit 95ece68ae6
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B
2 changed files with 1 additions and 9 deletions

View file

@ -63,11 +63,6 @@ pub enum Error {
/// errors caused by wrong interlocking, safe to retry
Deadlocked,
/// if you see these errors someone is being lazy (:
Filler { // TODO filler error, remove later
message: String,
},
}
impl StdError for Error {}

View file

@ -25,10 +25,7 @@ impl From<CodempError> for PyErr {
CodempError::InvalidState { msg } => {
PyRuntimeError::new_err(format!("Invalid state: {}", msg))
}
CodempError::Deadlocked => PyRuntimeError::new_err(format!("Deadlock, retry.")),
CodempError::Filler { message } => {
PyBaseException::new_err(format!("Generic error: {}", message))
}
CodempError::Deadlocked => PyRuntimeError::new_err(format!("Deadlock, retry."))
}
}
}