Showing the changes to python/ext (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 | 141 | self->o = new_aubio_source ( self->uri, self->samplerate, self->hop_size ); |
| 142 | 142 | if (self->o == NULL) { |
| 143 | − PyErr_Format (PyExc_RuntimeError, "error creating source with \"%s\"", | |
| 144 | − self->uri); | |
| 143 | + // PyErr_Format(PyExc_RuntimeError, ...) was set above by new_ which called | |
| 144 | + // AUBIO_ERR when failing | |
| 145 | 145 | return -1; |
| 146 | 146 | } |
| 147 | 147 | self->samplerate = aubio_source_get_samplerate ( self->o ); |