Skip to content

Commit

Permalink
propagate exception from Polygon_init()
Browse files Browse the repository at this point in the history
  • Loading branch information
jraedler committed Jan 15, 2014
1 parent 815bfef commit 3435cfa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cPolygon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3435cfa

Please sign in to comment.