History

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

Paul Brossier committed 10 years ago

Commit bd8a92d1 parent 35280791 file · +2 −2Browse files

Showing the changes to python/ext/py-source.c (1 of 1 file). Show all

Unified · Split

python/ext/py-source.c+2−2
@@ -140,8 +140,8 @@ Py_source_init (Py_source * self, PyObject * args, PyObject * kwds) · 139 unmodified lines
140140 {
141141 self->o = new_aubio_source ( self->uri, self->samplerate, self->hop_size );
142142 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
145145 return -1;
146146 }
147147 self->samplerate = aubio_source_get_samplerate ( self->o );

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t