From 6d05f8bc63a0bab2972ed6e63582484230668d08 Mon Sep 17 00:00:00 2001 From: John McCardle Date: Mon, 27 Feb 2023 07:01:46 -0500 Subject: [PATCH] Return NONE properly from test API point --- src/McRFPy_API.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/McRFPy_API.cpp b/src/McRFPy_API.cpp index a7e449f..5c1a5ee 100644 --- a/src/McRFPy_API.cpp +++ b/src/McRFPy_API.cpp @@ -96,7 +96,10 @@ PyObject* McRFPy_API::_drawSprite(PyObject *self, PyObject *args) int ti, gx, gy; if (!PyArg_ParseTuple(args, "iii", &ti, &gx, &gy)) return NULL; drawSprite(ti, gx, gy); - return NULL; + + // return None correctly + Py_INCREF(Py_None); + return Py_None; } void McRFPy_API::api_init() {