diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-02-03 13:12:02 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-02-03 13:12:02 (GMT) |
commit | fa44be1e890cef23d0cf987dfc985d5a9fd645de (patch) | |
tree | 5a795e53836eada414de50dcb12fb928da73691a /plugins/pychrysalide/glibext | |
parent | 097e2f0265ea9cacdfbc7ab1ac7f1b64054b570f (diff) |
Raised exception in some Python constructors.
Diffstat (limited to 'plugins/pychrysalide/glibext')
-rw-r--r-- | plugins/pychrysalide/glibext/configuration.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/pychrysalide/glibext/configuration.c b/plugins/pychrysalide/glibext/configuration.c index e74f0a4..0fefc13 100644 --- a/plugins/pychrysalide/glibext/configuration.c +++ b/plugins/pychrysalide/glibext/configuration.c @@ -152,7 +152,7 @@ static PyObject *py_config_param_new(PyTypeObject *type, PyObject *args, PyObjec value = NULL; ret = PyArg_ParseTuple(args, "sI|O", &path, &ptype, &value); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; if (value == NULL || value == Py_None) param = g_config_param_new_empty(path, ptype); @@ -834,7 +834,7 @@ static PyObject *py_generic_config_new(PyTypeObject *type, PyObject *args, PyObj GGenConfig *config; /* Version GLib du format */ ret = PyArg_ParseTuple(args, "s", &name); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; config = g_generic_config_new(name); @@ -932,7 +932,7 @@ static PyObject *py_generic_config_search(PyObject *self, PyObject *args) config = G_GEN_CONFIG(pygobject_get(self)); ret = PyArg_ParseTuple(args, "s", &path); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; param = g_generic_config_search(config, path); @@ -968,7 +968,7 @@ static PyObject *py_generic_config_add(PyObject *self, PyObject *args) config = G_GEN_CONFIG(pygobject_get(self)); ret = PyArg_ParseTuple(args, "O", ¶m); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; ret = PyObject_IsInstance(param, (PyObject *)get_python_config_param_type()); if (!ret) Py_RETURN_NONE; @@ -1010,7 +1010,7 @@ static PyObject *py_generic_config_delete(PyObject *self, PyObject *args) config = G_GEN_CONFIG(pygobject_get(self)); ret = PyArg_ParseTuple(args, "s", &path); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; g_generic_config_delete_param(config, path); |