Issue #9675: Final touch

This commit is contained in:
Jesus Cea 2010-11-08 12:57:59 +00:00
parent bf02429c43
commit bf088f811c
1 changed files with 4 additions and 2 deletions

View File

@ -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();
}