Commit 8235d1c9 authored by Stefan Behnel's avatar Stefan Behnel

Explicitly ignore an error return value since we're resetting the exception state afterwards.

parent be99a19f
...@@ -681,7 +681,8 @@ static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate, int ...@@ -681,7 +681,8 @@ static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate, int
} }
if (!use_cline) { if (!use_cline) {
c_line = 0; c_line = 0;
PyObject_SetAttr(${cython_runtime_cname}, PYIDENT("cline_in_traceback"), Py_False); // No need to handle errors here when we reset the exception state just afterwards.
(void) PyObject_SetAttr(${cython_runtime_cname}, PYIDENT("cline_in_traceback"), Py_False);
} }
else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) { else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
c_line = 0; c_line = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment