From: Paul Brossier Date: Fri, 13 May 2016 15:23:20 +0000 (+0200) Subject: python/ext/py-musicutils.c: do not overwrite PyArg_ParseTuple messages X-Git-Tag: 0.4.4~300^2~56 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=ff89a067d9cebe3de5c3d5fb57085e42feb6142f;p=aubio.git python/ext/py-musicutils.c: do not overwrite PyArg_ParseTuple messages --- diff --git a/python/ext/py-musicutils.c b/python/ext/py-musicutils.c index 0f29697b..3078e079 100644 --- a/python/ext/py-musicutils.c +++ b/python/ext/py-musicutils.c @@ -8,7 +8,6 @@ Py_aubio_window(PyObject *self, PyObject *args) fvec_t *window = NULL; if (!PyArg_ParseTuple (args, "|sI", &wintype, &winlen)) { - PyErr_SetString (PyExc_ValueError, "failed parsing arguments"); return NULL; } @@ -29,7 +28,6 @@ Py_aubio_level_lin(PyObject *self, PyObject *args) PyObject *level_lin; if (!PyArg_ParseTuple (args, "O:level_lin", &input)) { - PyErr_SetString (PyExc_ValueError, "failed parsing arguments"); return NULL; } @@ -58,7 +56,6 @@ Py_aubio_db_spl(PyObject *self, PyObject *args) PyObject *db_spl; if (!PyArg_ParseTuple (args, "O:db_spl", &input)) { - PyErr_SetString (PyExc_ValueError, "failed parsing arguments"); return NULL; } @@ -88,7 +85,6 @@ Py_aubio_silence_detection(PyObject *self, PyObject *args) smpl_t threshold; if (!PyArg_ParseTuple (args, "O" AUBIO_NPY_SMPL_CHR ":silence_detection", &input, &threshold)) { - PyErr_SetString (PyExc_ValueError, "failed parsing arguments"); return NULL; } @@ -118,7 +114,6 @@ Py_aubio_level_detection(PyObject *self, PyObject *args) smpl_t threshold; if (!PyArg_ParseTuple (args, "O" AUBIO_NPY_SMPL_CHR ":level_detection", &input, &threshold)) { - PyErr_SetString (PyExc_ValueError, "failed parsing arguments"); return NULL; }