projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3528079
)
python/ext/py-source.c: use error string set in src/io/source.c
author
Paul Brossier
<piem@piem.org>
Fri, 23 Sep 2016 01:24:07 +0000
(
03:24
+0200)
committer
Paul Brossier
<piem@piem.org>
Fri, 23 Sep 2016 01:24:07 +0000
(
03:24
+0200)
python/ext/py-source.c
patch
|
blob
|
history
diff --git
a/python/ext/py-source.c
b/python/ext/py-source.c
index
8280868
..
8350904
100644
(file)
--- a/
python/ext/py-source.c
+++ b/
python/ext/py-source.c
@@
-140,8
+140,8
@@
Py_source_init (Py_source * self, PyObject * args, PyObject * kwds)
{
self->o = new_aubio_source ( self->uri, self->samplerate, self->hop_size );
if (self->o == NULL) {
- PyErr_Format (PyExc_RuntimeError, "error creating source with \"%s\"",
- self->uri);
+ // PyErr_Format(PyExc_RuntimeError, ...) was set above by new_ which called
+ // AUBIO_ERR when failing
return -1;
}
self->samplerate = aubio_source_get_samplerate ( self->o );