We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16757d3 commit b0692cbCopy full SHA for b0692cb
src/mod.c
@@ -71,12 +71,11 @@ static PyObject* handle(PyObject* self, PyObject* args) {
71
72
if (setjmp(buf)) {
73
CALL_ATTR(faulthandler, "enable");
74
- PyCodeObject* code = PyFrame_GetCode(PyEval_GetFrame());
75
76
PyErr_Format(
77
PyExc_RuntimeError,
78
"segment violation occured during execution of %S",
79
- code->co_name
+ PyObject_GetAttrString(func, "__name__")
80
);
81
return NULL;
82
}
0 commit comments