Commit bf088f81 authored by Jesus Cea's avatar Jesus Cea

Issue #9675: Final touch

parent bf02429c
......@@ -9987,8 +9987,10 @@ PyMODINIT_FUNC PyInit__bsddb(void) /* Note the two underscores */
Py_DECREF(py_api);
} else { /* Something bad happened */
PyErr_WriteUnraisable(m);
PyErr_Warn(PyExc_RuntimeWarning,
"_bsddb/_pybsddb C API will be not available");
if(PyErr_Warn(PyExc_RuntimeWarning,
"_bsddb/_pybsddb C API will be not available")) {
PyErr_WriteUnraisable(m);
}
PyErr_Clear();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment