Changeset 843b22f
- Timestamp:
- Jun 29, 2019, 12:48:50 PM (5 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/crepe, feature/crepe_org, feature/timestretch, fix/ffmpeg5, master
- Children:
- 2244f00
- Parents:
- 673d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-filterbank.c
r673d7e3 r843b22f 327 327 PyObject *type, *value, *traceback; 328 328 PyErr_Fetch(&type, &value, &traceback); 329 PyErr_Restore(PyExc_ValueError, value, traceback); 329 Py_XDECREF(type); 330 type = PyExc_ValueError; 331 Py_XINCREF(type); 332 PyErr_Restore(type, value, traceback); 330 333 } 331 334 return NULL; … … 352 355 PyObject *type, *value, *traceback; 353 356 PyErr_Fetch(&type, &value, &traceback); 354 PyErr_Restore(PyExc_ValueError, value, traceback); 357 Py_XDECREF(type); 358 type = PyExc_ValueError; 359 Py_XINCREF(type); 360 PyErr_Restore(type, value, traceback); 355 361 } 356 362 return NULL; … … 381 387 PyObject *type, *value, *traceback; 382 388 PyErr_Fetch(&type, &value, &traceback); 383 PyErr_Restore(PyExc_ValueError, value, traceback); 389 Py_XDECREF(type); 390 type = PyExc_ValueError; 391 Py_XINCREF(type); 392 PyErr_Restore(type, value, traceback); 384 393 } 385 394 return NULL; … … 410 419 PyObject *type, *value, *traceback; 411 420 PyErr_Fetch(&type, &value, &traceback); 412 PyErr_Restore(PyExc_ValueError, value, traceback); 421 Py_XDECREF(type); 422 type = PyExc_ValueError; 423 Py_XINCREF(type); 424 PyErr_Restore(type, value, traceback); 413 425 } 414 426 return NULL; … … 464 476 PyObject *type, *value, *traceback; 465 477 PyErr_Fetch(&type, &value, &traceback); 466 PyErr_Restore(PyExc_ValueError, value, traceback); 478 Py_XDECREF(type); 479 type = PyExc_ValueError; 480 Py_XINCREF(type); 481 PyErr_Restore(type, value, traceback); 467 482 } 468 483 return NULL; … … 494 509 PyObject *type, *value, *traceback; 495 510 PyErr_Fetch(&type, &value, &traceback); 496 PyErr_Restore(PyExc_ValueError, value, traceback); 511 Py_XDECREF(type); 512 type = PyExc_ValueError; 513 Py_XINCREF(type); 514 PyErr_Restore(type, value, traceback); 497 515 } 498 516 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.