mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 12:00:13 +01:00
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:
@@ -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"))) {
|
||||
|
||||
Reference in New Issue
Block a user