commit | bf088f811cdab3485228ae0d43e24f9b07bbe6a2 | [log] [tgz] |
---|---|---|
author | Jesus Cea <jcea@jcea.es> | Mon Nov 08 12:57:59 2010 +0000 |
committer | Jesus Cea <jcea@jcea.es> | Mon Nov 08 12:57:59 2010 +0000 |
tree | ce407796490fed2cf89c105cea5340695dc1710e | |
parent | bf02429c4307672eb0c1f4a33f5b00c346a917a8 [diff] [blame] |
Issue #9675: Final touch
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 1451776..d2d12ff 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c
@@ -9987,8 +9987,10 @@ 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(); }