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/common/pathname.c | |
parent | 097e2f0265ea9cacdfbc7ab1ac7f1b64054b570f (diff) |
Raised exception in some Python constructors.
Diffstat (limited to 'plugins/pychrysalide/common/pathname.c')
-rw-r--r-- | plugins/pychrysalide/common/pathname.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pychrysalide/common/pathname.c b/plugins/pychrysalide/common/pathname.c index e07ebe5..cbe05ed 100644 --- a/plugins/pychrysalide/common/pathname.c +++ b/plugins/pychrysalide/common/pathname.c @@ -70,7 +70,7 @@ static PyObject *py_build_relative_filename(PyObject *self, PyObject *args) char *relative; /* Chemin d'accès construit */ ret = PyArg_ParseTuple(args, "ss", &ref, &target); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; relative = build_relative_filename(ref, target); @@ -105,7 +105,7 @@ static PyObject *py_build_absolute_filename(PyObject *self, PyObject *args) char *relative; /* Chemin d'accès construit */ ret = PyArg_ParseTuple(args, "ss", &ref, &target); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; relative = build_absolute_filename(ref, target); |