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/arch | |
parent | 097e2f0265ea9cacdfbc7ab1ac7f1b64054b570f (diff) |
Raised exception in some Python constructors.
Diffstat (limited to 'plugins/pychrysalide/arch')
-rw-r--r-- | plugins/pychrysalide/arch/vmpa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/pychrysalide/arch/vmpa.c b/plugins/pychrysalide/arch/vmpa.c index b89c3d7..0474fe0 100644 --- a/plugins/pychrysalide/arch/vmpa.c +++ b/plugins/pychrysalide/arch/vmpa.c @@ -403,7 +403,7 @@ static PyObject *py_vmpa_new(PyTypeObject *type, PyObject *args, PyObject *kwds) virt = VMPA_NO_VIRTUAL; ret = PyArg_ParseTuple(args, "|KK", &phy, &virt); - if (!ret) Py_RETURN_NONE; + if (!ret) return NULL; result = (py_vmpa_t *)type->tp_alloc(type, 0); |