]> git.saurik.com Git - wxWidgets.git/commitdiff
Getthe GIL before raisign an exception
authorRobin Dunn <robin@alldunn.com>
Sat, 18 Sep 2004 23:12:24 +0000 (23:12 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 18 Sep 2004 23:12:24 +0000 (23:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_image.i

index bcd1deb33de4a291d23784f8c3f8b622c5a6b3ff..a3e9547aed7e33d7883287e024b2690f4d587c1d 100644 (file)
@@ -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 */ ;
             }