mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-26 00:43:17 -06:00
Update behaviour for bindings to categoryContext when cat is non-existant
This commit is contained in:
1 parent
a715d029f7
commit
9e3d329528
2 files changed
+5
-1
No files matched your search
@@ -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