From 6d234a7d7e32329698a7560af06a2b0e6dcf3378 Mon Sep 17 00:00:00 2001 From: krangelov Date: Mon, 27 Sep 2021 13:46:37 +0200 Subject: [PATCH] bugfix --- src/runtime/python/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/python/expr.c b/src/runtime/python/expr.c index 3cd0666bd..b6ceff16a 100644 --- a/src/runtime/python/expr.c +++ b/src/runtime/python/expr.c @@ -1031,7 +1031,7 @@ ExprFun_init(ExprFunObject *self, PyObject *args, PyObject *kwds) return -1; } Py_INCREF(self->name); - if (PyList_Size(list) != 0) { + if (list != NULL && PyList_Size(list) != 0) { PyErr_SetString(PyExc_TypeError, "The list of arguments must be empty"); return -1; }