Skip to content

Commit

Permalink
Merge branch 'crash_import_module_python' into python-3.11_pyframeobj…
Browse files Browse the repository at this point in the history
…ect_changes
  • Loading branch information
Charles PIGNEROL committed Aug 28, 2024
2 parents 1d2f954 + cffe54d commit d061690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QtPython3/QtPythonConsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,8 +655,8 @@ static int tracePythonExecution (PyObject*, PyFrameObject* frame, int what, PyOb
else if (PyTrace_EXCEPTION == what) // Ligne en erreur
{
PyObject* pystring = PyObject_Str (obj);
Py_DecRef (pystring);
const string error= PyUnicode_AsUTF8 (pystring);
Py_DecRef (pystring);
QtPythonConsole &console = getConsole (*frame);
console.lineProcessedCallback (PyUnicode_AsUTF8 (PyFrame_GetCode(frame)->co_filename), PyFrame_GetLineNumber (frame), false, error);
} // if (PyTrace_EXCEPTION == what)
Expand Down

0 comments on commit d061690

Please sign in to comment.