diff --git a/src/cPolygon.c b/src/cPolygon.c index d3bce66..41311f5 100644 --- a/src/cPolygon.c +++ b/src/cPolygon.c @@ -313,6 +313,9 @@ static int Polygon_init(Polygon *self, PyObject *args, PyObject *kwds) { Polygon_Raise(ERR_ARG); return -1; } + if (PyErr_Occurred()) { + return -1; + } if (TMP) { Py_DECREF(TMP); }