From 95ece68ae69ce39a5ff0ec71a9aa1e966ddbbcd3 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Tue, 6 Aug 2024 00:16:52 +0200 Subject: [PATCH] fix: removed filler error --- src/errors.rs | 5 ----- src/ffi/python.rs | 5 +---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index f4ded8a..4668c24 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -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 {} diff --git a/src/ffi/python.rs b/src/ffi/python.rs index a7563e4..80fb8f4 100644 --- a/src/ffi/python.rs +++ b/src/ffi/python.rs @@ -25,10 +25,7 @@ impl From 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.")) } } }