[Python-checkins] r86317 - python/branches/release27-maint/Modules/_bsddb.c

jesus.cea python-checkins at python.org
Mon Nov 8 13:57:59 CET 2010


Author: jesus.cea
Date: Mon Nov  8 13:57:59 2010
New Revision: 86317

Log:
Issue #9675: Final touch

Modified:
   python/branches/release27-maint/Modules/_bsddb.c

Modified: python/branches/release27-maint/Modules/_bsddb.c
==============================================================================
--- python/branches/release27-maint/Modules/_bsddb.c	(original)
+++ python/branches/release27-maint/Modules/_bsddb.c	Mon Nov  8 13:57:59 2010
@@ -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();
     }
 


More information about the Python-checkins mailing list