From 6d3e4e02c7a3aac9e97b9b969bb77872d24ffa94 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 8 Dec 2006 23:47:12 +0000 Subject: [PATCH] Clear error if wxPyConvertSwigPtr failed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/grid.i | 1 + 1 file changed, 1 insertion(+) diff --git a/wxPython/src/grid.i b/wxPython/src/grid.i index 225f899087..4b63e19d07 100644 --- a/wxPython/src/grid.i +++ b/wxPython/src/grid.i @@ -593,6 +593,7 @@ public: rval = *ptr; } else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) { + PyErr_Clear(); // Clear the exception left over from wxPyConvertSwigPtr PyObject* o1 = PySequence_GetItem(ro, 0); PyObject* o2 = PySequence_GetItem(ro, 1); if (PyNumber_Check(o1) && PyNumber_Check(o2)) -- 2.50.0