hubcio commented on code in PR #4017:
URL: https://github.com/apache/iggy/pull/4017#discussion_r3940375998
##########
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:
actually this was my comment, imho it looks looks cleaner this way.
--
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]