forked from GitHub/gf-core
Update behaviour for bindings to categoryContext when cat is non-existant
This commit is contained in:
@@ -1917,6 +1917,10 @@ PGF_categoryContext(PGFObject *self, PyObject *args)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (hypos == NULL) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
PyObject *contexts = PyList_New(n_hypos);
|
||||
if (contexts == NULL) {
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user