mirror of https://github.com/python/cpython
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);
|
Py_DECREF(py_api);
|
||||||
} else { /* Something bad happened */
|
} else { /* Something bad happened */
|
||||||
PyErr_WriteUnraisable(m);
|
PyErr_WriteUnraisable(m);
|
||||||
PyErr_Warn(PyExc_RuntimeWarning,
|
if(PyErr_Warn(PyExc_RuntimeWarning,
|
||||||
"_bsddb/_pybsddb C API will be not available");
|
"_bsddb/_pybsddb C API will be not available")) {
|
||||||
|
PyErr_WriteUnraisable(m);
|
||||||
|
}
|
||||||
PyErr_Clear();
|
PyErr_Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue