X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8470ed1a3ab8b9083d31d79aa36d2a5e76f94126..78577dcb71a8d748b9f5708321c3956c8b83bbe1:/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);