shithub: aubio

Download patch

ref: bd8a92d0fbc90828df0c08f30bf5c63ebd4690d4
parent: 3528079efa50ce6e134a133842227e254904f4dd
author: Paul Brossier <piem@piem.org>
date: Thu Sep 22 23:24:07 EDT 2016

python/ext/py-source.c: use error string set in src/io/source.c

--- a/python/ext/py-source.c
+++ b/python/ext/py-source.c
@@ -140,8 +140,8 @@
 {
   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 );