From: Robin Dunn Date: Thu, 22 Apr 2004 22:07:20 +0000 (+0000) Subject: Get the GIL before raising an exception X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a51dff7380c17258a209dd3c9c7fa01444553ee5 Get the GIL before raising an exception git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_evthandler.i b/wxPython/src/_evthandler.i index 1d3f53ceb9..f4baaacfdb 100644 --- a/wxPython/src/_evthandler.i +++ b/wxPython/src/_evthandler.i @@ -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.")); } }