From ff89a067d9cebe3de5c3d5fb57085e42feb6142f Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 13 May 2016 17:23:20 +0200 Subject: [PATCH] python/ext/py-musicutils.c: do not overwrite PyArg_ParseTuple messages --- python/ext/py-musicutils.c | 5 ----- 1 file changed, 5 deletions(-) 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; } -- 2.11.0