]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Revert "gh-76785: Print the Traceback from Interpreter.run() (gh-110248)" (gh-110314)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 3 Oct 2023 21:18:25 +0000 (15:18 -0600)
committerGitHub <noreply@github.com>
Tue, 3 Oct 2023 21:18:25 +0000 (21:18 +0000)
This reverts commit 6bc889aedc11cc8e0b9f57948a3d528ad2685497.

That commit is causing some buildbot failures.

Modules/_xxsubinterpretersmodule.c

index 33feae8ee82ff254f82775458eb1b2272e92415e..700282efb8c6197bda51d0f78625ecdc98ebe50f 100644 (file)
@@ -450,10 +450,6 @@ error:
                 "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);