Showing the changes to python/ext (1 of 1 file). Show all
Unified · Split
| @@ -66,9 +66,8 @@ Py_pvoc_init (Py_pvoc * self, PyObject * args, PyObject * kwds) · 65 unmodified lines | |||
| 66 | { | 66 | { |
| 67 | self->o = new_aubio_pvoc ( self->win_s, self->hop_s); | 67 | self->o = new_aubio_pvoc ( self->win_s, self->hop_s); |
| 68 | if (self->o == NULL) { | 68 | if (self->o == NULL) { |
| 69 | PyErr_Format(PyExc_RuntimeError, | 69 | // PyErr_Format(PyExc_RuntimeError, ...) was set above by new_ which called |
| 70 | "failed creating pvoc with win_s=%d, hop_s=%d", | 70 | // AUBIO_ERR when failing |
| 71 | self->win_s, self->hop_s); | ||
| 72 | return -1; | 71 | return -1; |
| 73 | } | 72 | } |
| 74 | 73 | ||