diff --git a/wxPython/include/wx/wxPython/wxPython_int.h b/wxPython/include/wx/wxPython/wxPython_int.h index 334fdcd323..cca6beddb2 100644 --- a/wxPython/include/wx/wxPython/wxPython_int.h +++ b/wxPython/include/wx/wxPython/wxPython_int.h @@ -1678,6 +1678,7 @@ extern wxPyApp *wxPythonApp; if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxSize"))) \ rval = *ptr; \ else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) { \ + PyErr_Clear(); \ PyObject* o1 = PySequence_GetItem(ro, 0); \ PyObject* o2 = PySequence_GetItem(ro, 1); \ if (PyNumber_Check(o1) && PyNumber_Check(o2)) \