From bd8a92d0fbc90828df0c08f30bf5c63ebd4690d4 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 23 Sep 2016 03:24:07 +0200 Subject: [PATCH] python/ext/py-source.c: use error string set in src/io/source.c --- python/ext/py-source.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.11.0