ref: dab4a4cfc22643389c6d99b8cbee766ca9279d88
parent: 1d01e51537416eb1169b03d3f98ee2b56343d4aa
author: Paul Brossier <piem@piem.org>
date: Thu Sep 22 23:22:51 EDT 2016
python/ext/py-fft.c: use error string set in src/spectral/fft.c
--- a/python/ext/py-fft.c
+++ b/python/ext/py-fft.c
@@ -51,11 +51,8 @@
{
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;
}