Miscellaneous fixes for Python, mostly version 3
Showing the changes to python/ext/py-source.c (1 of 10 files). Show all
Unified · Split
| @@ -139,7 +139,7 @@ Py_source_init (Py_source * self, PyObject * args, PyObject * kwds) · 138 unmodified lines | ||
| 139 | 139 | if (self->o == NULL) { |
| 140 | 140 | char_t errstr[30 + strlen(self->uri)]; |
| 141 | 141 | sprintf(errstr, "error creating source with %s", self->uri); |
| 142 | − PyErr_SetString (PyExc_StandardError, errstr); | |
| 142 | + PyErr_SetString (PyExc_RuntimeError, errstr); | |
| 143 | 143 | return -1; |
| 144 | 144 | } |
| 145 | 145 | self->samplerate = aubio_source_get_samplerate ( self->o ); |