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/analysis/contents/file.c | |
parent | 097e2f0265ea9cacdfbc7ab1ac7f1b64054b570f (diff) |
Raised exception in some Python constructors.
Diffstat (limited to 'plugins/pychrysalide/analysis/contents/file.c')
-rw-r--r-- | plugins/pychrysalide/analysis/contents/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/pychrysalide/analysis/contents/file.c b/plugins/pychrysalide/analysis/contents/file.c index b7a217a..f660656 100644 --- a/plugins/pychrysalide/analysis/contents/file.c +++ b/plugins/pychrysalide/analysis/contents/file.c @@ -63,7 +63,7 @@ static PyObject *py_file_content_new(PyTypeObject *type, PyObject *args, PyObjec GBinContent *content; /* Version GLib du contenu */ ret = PyArg_ParseTuple(args, "s", &filename); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; content = g_file_content_new(filename); |