Changeset 11c46c8 for python/ext
- Timestamp:
- Mar 26, 2019, 3:22:37 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/crepe, feature/crepe_org, feature/timestretch, fix/ffmpeg5, master
- Children:
- 841ceed
- Parents:
- 8bfef30
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-filter.c
r8bfef30 r11c46c8 160 160 PyErr_SetString (PyExc_ValueError, 161 161 "error when setting filter to C-weighting"); 162 } else { 163 // change the RuntimeError into ValueError 164 PyObject *type, *value, *traceback; 165 PyErr_Fetch(&type, &value, &traceback); 166 PyErr_Restore(PyExc_ValueError, value, traceback); 162 167 } 163 168 return NULL; … … 180 185 PyErr_SetString (PyExc_ValueError, 181 186 "error when setting filter to A-weighting"); 187 } else { 188 // change the RuntimeError into ValueError 189 PyObject *type, *value, *traceback; 190 PyErr_Fetch(&type, &value, &traceback); 191 PyErr_Restore(PyExc_ValueError, value, traceback); 182 192 } 183 193 return NULL; … … 200 210 PyErr_SetString (PyExc_ValueError, 201 211 "error when setting filter with biquad coefficients"); 212 } else { 213 // change the RuntimeError into ValueError 214 PyObject *type, *value, *traceback; 215 PyErr_Fetch(&type, &value, &traceback); 216 PyErr_Restore(PyExc_ValueError, value, traceback); 202 217 } 203 218 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.