Add error check after creating an instance of the tag handler

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-04-24 02:42:28 +00:00
parent a5a76820ca
commit 41bc74b057

View File

@@ -82,6 +82,12 @@ def run():
PyObject* arg = PyTuple_New(0);
PyObject* obj = PyObject_CallObject(m_tagHandlerClass, arg);
Py_DECREF(arg);
// Make sure it succeeded
if (!obj) {
PyErr_Print();
return;
}
// now figure out where it's C++ object is...
if (! wxPyConvertWrappedPtr(obj, (void **)&thPtr, wxT("wxHtmlWinTagHandler"))) {