From 3528079efa50ce6e134a133842227e254904f4dd Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 23 Sep 2016 03:23:47 +0200 Subject: [PATCH] python/ext/py-phasevoc.c: use error string set in src/spectral/phasevoc.c --- python/ext/py-phasevoc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/ext/py-phasevoc.c b/python/ext/py-phasevoc.c index bcd3d8ba..74ddc180 100644 --- a/python/ext/py-phasevoc.c +++ b/python/ext/py-phasevoc.c @@ -66,9 +66,8 @@ Py_pvoc_init (Py_pvoc * self, PyObject * args, PyObject * kwds) { self->o = new_aubio_pvoc ( self->win_s, self->hop_s); if (self->o == NULL) { - PyErr_Format(PyExc_RuntimeError, - "failed creating pvoc with win_s=%d, hop_s=%d", - self->win_s, self->hop_s); + // PyErr_Format(PyExc_RuntimeError, ...) was set above by new_ which called + // AUBIO_ERR when failing return -1; } -- 2.11.0