mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
bugfix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user