◐ Shell
clean mode source ↗

Message 201699 - Python tracker

The changeset 1787277915e9 is closer to a workaround than a real fix:

+    if (module != Py_None) {
+        res = warn_explicit(category, message, filename, lineno, module, registry,
+                            NULL);
+    }
+    else {
+        /* FIXME: emitting warnings at exit does crash Python */
+        res = Py_None;
+        Py_INCREF(res);
+    }