Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -140,8 +140,8 @@ Py_source_init (Py_source * self, PyObject * args, PyObject * kwds) · 139 unmodified lines | |||
| 140 | { | 140 | { |
| 141 | self->o = new_aubio_source ( self->uri, self->samplerate, self->hop_size ); | 141 | self->o = new_aubio_source ( self->uri, self->samplerate, self->hop_size ); |
| 142 | if (self->o == NULL) { | 142 | if (self->o == NULL) { |
| 143 | PyErr_Format (PyExc_RuntimeError, "error creating source with \"%s\"", | 143 | // PyErr_Format(PyExc_RuntimeError, ...) was set above by new_ which called |
| 144 | self->uri); | 144 | // AUBIO_ERR when failing |
| 145 | return -1; | 145 | return -1; |
| 146 | } | 146 | } |
| 147 | self->samplerate = aubio_source_get_samplerate ( self->o ); | 147 | self->samplerate = aubio_source_get_samplerate ( self->o ); |