projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d01e51
)
python/ext/py-fft.c: use error string set in src/spectral/fft.c
author
Paul Brossier
<piem@piem.org>
Fri, 23 Sep 2016 01:22:51 +0000
(
03:22
+0200)
committer
Paul Brossier
<piem@piem.org>
Fri, 23 Sep 2016 01:22:51 +0000
(
03:22
+0200)
python/ext/py-fft.c
patch
|
blob
|
history
diff --git
a/python/ext/py-fft.c
b/python/ext/py-fft.c
index
7485ea3
..
8763632
100644
(file)
--- 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;
}