From: Paul Brossier Date: Fri, 23 Sep 2016 01:22:51 +0000 (+0200) Subject: python/ext/py-fft.c: use error string set in src/spectral/fft.c X-Git-Tag: 0.4.4~194 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=dab4a4cfc22643389c6d99b8cbee766ca9279d88;p=aubio.git python/ext/py-fft.c: use error string set in src/spectral/fft.c --- 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; }