From: Paul Brossier Date: Fri, 23 Sep 2016 01:24:07 +0000 (+0200) Subject: python/ext/py-source.c: use error string set in src/io/source.c X-Git-Tag: 0.4.4~192 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=bd8a92d0fbc90828df0c08f30bf5c63ebd4690d4;p=aubio.git python/ext/py-source.c: use error string set in src/io/source.c --- diff --git a/python/ext/py-source.c b/python/ext/py-source.c index 82808686..8350904a 100644 --- 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 );