From debff7aa47c6424b4890d64ccdac4223d8d5f9f1 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 18 Sep 2004 23:12:24 +0000 Subject: [PATCH] Getthe GIL before raisign an exception git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_image.i | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wxPython/src/_image.i b/wxPython/src/_image.i index bcd1deb33d..a3e9547aed 100644 --- a/wxPython/src/_image.i +++ b/wxPython/src/_image.i @@ -200,7 +200,8 @@ nothing.", ""); unsigned char* dataPtr; if (! PyString_Check(data)) { - PyErr_SetString(PyExc_TypeError, "Expected string object"); + wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, + "Expected string object")); return /* NULL */ ; } -- 2.45.2