Skip to content

Commit

Permalink
Revert "pythongh-76785: Print the Traceback from Interpreter.run() (p…
Browse files Browse the repository at this point in the history
…ythongh-110248)" (pythongh-110314)

This reverts commit 6bc889a.

That commit is causing some buildbot failures.
  • Loading branch information
ericsnowcurrently authored and Glyphack committed Jan 27, 2024
1 parent 4bf721b commit 0a83b0f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Modules/_xxsubinterpretersmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,6 @@ _run_script(PyInterpreterState *interp, const char *codestr,
"RunFailedError: script raised an uncaught exception (%s)",
failure);
}
// XXX Instead, store the rendered traceback on sharedexc,
// attach it to the exception when applied,
// and teach PyErr_Display() to print it.
PyErr_Display(NULL, excval, NULL);
Py_XDECREF(excval);
if (errcode != ERR_ALREADY_RUNNING) {
_PyInterpreterState_SetNotRunningMain(interp);
Expand Down

0 comments on commit 0a83b0f

Please sign in to comment.