We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ada25e8 commit 469d486Copy full SHA for 469d486
src/utils.rs
@@ -28,7 +28,6 @@ use datafusion_ffi::table_provider::{FFI_TableProvider, ForeignTableProvider};
28
use pyo3::exceptions::PyValueError;
29
use pyo3::prelude::*;
30
use pyo3::types::PyCapsule;
31
-use pyo3::PyErr;
32
use tokio::runtime::Runtime;
33
use tokio::task::JoinHandle;
34
use tokio::time::sleep;
@@ -87,13 +86,9 @@ where
87
86
res = &mut fut => break Ok(res),
88
_ = sleep(INTERVAL_CHECK_SIGNALS) => {
89
Python::attach(|py| {
90
- if let Some(err) = PyErr::take(py) {
91
- Err(err)
92
- } else {
93
let code = CString::new("pass").unwrap();
94
py.run(code.as_c_str(), None, None)?;
95
py.check_signals()
96
- }
97
})?;
98
}
99
0 commit comments