From 007f833aa3bd1f674f32fd2fbc799b8e54b82e45 Mon Sep 17 00:00:00 2001 From: Gaetan Perrot Date: Thu, 29 Aug 2024 11:47:08 +0900 Subject: [PATCH] Update pycsp.c --- src/bindings/python/pycsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/pycsp.c b/src/bindings/python/pycsp.c index ca02130e0..46fda9e03 100644 --- a/src/bindings/python/pycsp.c +++ b/src/bindings/python/pycsp.c @@ -986,7 +986,7 @@ static PyObject * pycsp_add_iface(PyObject * self, PyObject * args) { if (num_args == 0) { // No arguments, return a capsule with NULL - return PyCapsule_New(iface, "csp_iface_t", NULL); + Py_RETURN_NONE; } if (!PyArg_ParseTuple(args, "|HHSb", &addr, &netmask, &name, &is_default)) {