slbotbm commented on code in PR #4017:
URL: https://github.com/apache/iggy/pull/4017#discussion_r3940457502
##########
foreign/python/src/client.rs:
##########
@@ -57,6 +57,10 @@ pub struct IggyClient {
inner: Arc<RustIggyClient>,
}
+fn to_runtime_error(error: impl ToString) -> PyErr {
+ PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(error.to_string())
Review Comment:
This change only replaces the two instances in this PR, but there are a lot
more instances in the file. Let's change every place that calls the error into
this function then
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]