diff options
Diffstat (limited to 'plugins/python')
-rw-r--r-- | plugins/python/python.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c index 3305ce2c..912341a8 100644 --- a/plugins/python/python.c +++ b/plugins/python/python.c @@ -919,9 +919,10 @@ Context_compare(ContextObject *a, ContextObject *b, int op) else { PyErr_SetString(PyExc_TypeError, "contexts are either equal or not equal"); - ret = NULL; + ret = Py_None; } + Py_INCREF(ret); return ret; } |