ref: ff89a067d9cebe3de5c3d5fb57085e42feb6142f
parent: 7876b67aca5b6aff2cda6b721b2aba1764e0c1aa
author: Paul Brossier <piem@piem.org>
date: Fri May 13 13:23:20 EDT 2016
python/ext/py-musicutils.c: do not overwrite PyArg_ParseTuple messages
--- a/python/ext/py-musicutils.c
+++ b/python/ext/py-musicutils.c
@@ -8,7 +8,6 @@
fvec_t *window = NULL;
if (!PyArg_ParseTuple (args, "|sI", &wintype, &winlen)) {
- PyErr_SetString (PyExc_ValueError, "failed parsing arguments");
return NULL;
}
@@ -29,7 +28,6 @@
PyObject *level_lin;
if (!PyArg_ParseTuple (args, "O:level_lin", &input)) {
- PyErr_SetString (PyExc_ValueError, "failed parsing arguments");
return NULL;
}
@@ -58,7 +56,6 @@
PyObject *db_spl;
if (!PyArg_ParseTuple (args, "O:db_spl", &input)) {
- PyErr_SetString (PyExc_ValueError, "failed parsing arguments");
return NULL;
}
@@ -88,7 +85,6 @@
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 @@
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;
}