diff --git a/xlntpyarrow/xlntpyarrow.cpp b/xlntpyarrow/xlntpyarrow.cpp index 1d850b09..41574f46 100644 --- a/xlntpyarrow/xlntpyarrow.cpp +++ b/xlntpyarrow/xlntpyarrow.cpp @@ -15,7 +15,7 @@ bool import_pyarrow() if (!imported) { - if (!arrow::py::import_pyarrow()) + if (arrow::py::import_pyarrow() != 0) { if (PyErr_Occurred() != nullptr) {