Changeset 2244f00 for python/lib


Ignore:
Timestamp:
Jun 29, 2019, 12:48:56 PM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/crepe, feature/crepe_org, feature/timestretch, fix/ffmpeg5, master
Children:
08d07ce, 1ec59e4, 2f16966, b1ed6ce
Parents:
843b22f
Message:

[py] incref exception type before restoring it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_code.py

    r843b22f r2244f00  
    510510      PyObject *type, *value, *traceback;
    511511      PyErr_Fetch(&type, &value, &traceback);
    512       PyErr_Restore(PyExc_ValueError, value, traceback);
     512      Py_XDECREF(type);
     513      type = PyExc_ValueError;
     514      Py_XINCREF(type);
     515      PyErr_Restore(type, value, traceback);
    513516    }}
    514517    return NULL;
Note: See TracChangeset for help on using the changeset viewer.