Changes in python/lib/gen_code.py [9b23815e:a2ed169]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/gen_code.py
r9b23815e ra2ed169 481 481 482 482 if (err > 0) {{ 483 if (PyErr_Occurred() == NULL) {{ 484 PyErr_SetString (PyExc_ValueError, "error running aubio_{shortname}_set_{param}"); 485 }} else {{ 486 // change the RuntimeError into ValueError 487 PyObject *type, *value, *traceback; 488 PyErr_Fetch(&type, &value, &traceback); 489 PyErr_Restore(PyExc_ValueError, value, traceback); 490 }} 483 PyErr_SetString (PyExc_ValueError, "error running aubio_{shortname}_set_{param}"); 491 484 return NULL; 492 485 }}
Note: See TracChangeset
for help on using the changeset viewer.