Issue #9675: Final touch
This commit is contained in:
parent
bf02429c43
commit
bf088f811c
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue