Skip to content

Commit 4356cd4

Browse files
committed
Using RAISE macro
1 parent 4a42bc9 commit 4356cd4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src_c/draw.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -775,14 +775,12 @@ aacircle(PyObject *self, PyObject *args, PyObject *kwargs)
775775
return NULL; /* Exception already set. */
776776

777777
if (!pg_TwoIntsFromObj(posobj, &posx, &posy)) {
778-
PyErr_SetString(PyExc_TypeError,
779-
"center argument must be a pair of numbers");
780-
return 0;
778+
return RAISE(PyExc_TypeError,
779+
"center argument must be a pair of numbers");
781780
}
782781

783782
if (!pg_IntFromObj(radiusobj, &radius)) {
784-
PyErr_SetString(PyExc_TypeError, "radius argument must be a number");
785-
return 0;
783+
return RAISE(PyExc_TypeError, "radius argument must be a number");
786784
}
787785

788786
surf = pgSurface_AsSurface(surfobj);

0 commit comments

Comments
 (0)