fix crash

This commit is contained in:
TingPing 2013-05-30 22:23:00 -03:00
parent 945251c6b8
commit 855c20501b

View File

@ -934,10 +934,10 @@ Context_compare(ContextObject *a, ContextObject *b, int op)
else else
{ {
PyErr_SetString(PyExc_TypeError, "contexts are either equal or not equal"); PyErr_SetString(PyExc_TypeError, "contexts are either equal or not equal");
Py_INCREF(Py_None);
ret = Py_None; ret = Py_None;
} }
Py_INCREF(ret);
return ret; return ret;
} }