From: Jesus Cea Date: Mon, 8 Nov 2010 12:57:59 +0000 (+0000) Subject: Issue #9675: Final touch X-Git-Tag: v2.7.1rc1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf088f811cdab3485228ae0d43e24f9b07bbe6a2;p=python Issue #9675: Final touch --- diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 14517764e5..d2d12ffb48 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -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(); }