1. Armin Rigo
  2. cpython-withatomic

Commits

Jesús Cea  committed 2d68248

Issue #9675: Final touch

  • Participants
  • Parent commits 074533a
  • Branches 2.7

Comments (0)

Files changed (1)

File Modules/_bsddb.c

View file
         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();
     }