X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8470ed1a3ab8b9083d31d79aa36d2a5e76f94126..9176f38f730c3415ac7a911c2f85cdea7eca4478:/wxPython/src/my_typemaps.i diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index 78ea572224..dbf2433fe0 100644 --- a/wxPython/src/my_typemaps.i +++ b/wxPython/src/my_typemaps.i @@ -197,6 +197,7 @@ %#else PyObject* str = PyObject_Str(item); %#endif + if (PyErr_Occurred()) SWIG_fail; $1->Add(Py2wxString(str)); Py_DECREF(item); Py_DECREF(str);