From dab4a4cfc22643389c6d99b8cbee766ca9279d88 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 23 Sep 2016 03:22:51 +0200 Subject: [PATCH] python/ext/py-fft.c: use error string set in src/spectral/fft.c --- python/ext/py-fft.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/python/ext/py-fft.c b/python/ext/py-fft.c index 7485ea3f..87636327 100644 --- a/python/ext/py-fft.c +++ b/python/ext/py-fft.c @@ -51,11 +51,8 @@ Py_fft_init (Py_fft * self, PyObject * args, PyObject * kwds) { self->o = new_aubio_fft (self->win_s); if (self->o == NULL) { - PyErr_Format(PyExc_RuntimeError, - "error creating fft with win_s=%d " - "(should be a power of 2 greater than 1; " - "try recompiling aubio with --enable-fftw3)", - self->win_s); + // PyErr_Format(PyExc_RuntimeError, ...) was set above by new_ which called + // AUBIO_ERR when failing return -1; } -- 2.11.0