cpython/Misc/NEWS.d/next/Library/2024-07-30-14-46-16.gh-issue-87320.-Yk1wb.rst

In :class:`code.InteractiveInterpreter`, handle exceptions caused by calling a
non-default :func:`sys.excepthook`. Before, the exception bubbled up to the
caller, ending the :term:`REPL`.