Changeset 088760e for python/lib/gen_code.py
- Timestamp:
- Oct 31, 2018, 10:26:52 PM (5 years ago)
- Branches:
- feature/constantq
- Children:
- c03d191
- Parents:
- 45c2c5c (diff), 7a54b37 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/gen_code.py
r45c2c5c r088760e 483 483 484 484 if (err > 0) {{ 485 PyErr_SetString (PyExc_ValueError, "error running aubio_{shortname}_set_{param}"); 485 if (PyErr_Occurred() == NULL) {{ 486 PyErr_SetString (PyExc_ValueError, "error running aubio_{shortname}_set_{param}"); 487 }} else {{ 488 // change the RuntimeError into ValueError 489 PyObject *type, *value, *traceback; 490 PyErr_Fetch(&type, &value, &traceback); 491 PyErr_Restore(PyExc_ValueError, value, traceback); 492 }} 486 493 return NULL; 487 494 }}
Note: See TracChangeset
for help on using the changeset viewer.