X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9416aa89ca06d0fb20b1002e026d2c7ac7aa6a17..decb3a6a16ea5acf1dfcdb1b70cb6edaa09840c0:/wxPython/src/my_typemaps.i diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index 140215972a..b1c58defd6 100644 --- a/wxPython/src/my_typemaps.i +++ b/wxPython/src/my_typemaps.i @@ -18,6 +18,7 @@ wxPy_BEGIN_ALLOW_THREADS; $function wxPy_END_ALLOW_THREADS; + if (PyErr_Occurred()) return NULL; } //----------------------------------------------------------------------