]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/grid.i
reSWIGged
[wxWidgets.git] / wxPython / src / grid.i
index 225f899087d47454bc9de6f424c1edfb7c0c98e0..4b63e19d071de61d5ee54bfa421444512827cc24 100644 (file)
@@ -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))