mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
bugfix
This commit is contained in:
@@ -1031,7 +1031,7 @@ ExprFun_init(ExprFunObject *self, PyObject *args, PyObject *kwds)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
Py_INCREF(self->name);
|
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");
|
PyErr_SetString(PyExc_TypeError, "The list of arguments must be empty");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user