]> git.saurik.com Git - wxWidgets.git/commitdiff
Get the GIL before raising an exception
authorRobin Dunn <robin@alldunn.com>
Thu, 22 Apr 2004 22:07:20 +0000 (22:07 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 22 Apr 2004 22:07:20 +0000 (22:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_evthandler.i

index 1d3f53ceb980a724bb556d85f57eeef4780c292f..f4baaacfdbfe0c45450d34d79b7f8b26ba2950e8 100644 (file)
@@ -53,7 +53,8 @@ public:
                                  &wxPyCallback::EventThunker);
             }
             else {
-                PyErr_SetString(PyExc_TypeError, "Expected callable object or None.");
+                wxPyBLOCK_THREADS(
+                    PyErr_SetString(PyExc_TypeError, "Expected callable object or None."));
             }
         }