mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
Issue #9675: Final touch
This commit is contained in:
parent
bf02429c43
commit
bf088f811c
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue