Skip to content

Commit

Permalink
pythonGH-90915: Document that SystemExit doesn't trigger sys.exceptho…
Browse files Browse the repository at this point in the history
…ok (python#31357)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
  • Loading branch information
3 people committed Sep 7, 2023
1 parent 6b15ff5 commit 1294fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ always available.

This function prints out a given traceback and exception to ``sys.stderr``.

When an exception is raised and uncaught, the interpreter calls
When an exception other than :exc:`SystemExit` is raised and uncaught, the interpreter calls
``sys.excepthook`` with three arguments, the exception class, exception
instance, and a traceback object. In an interactive session this happens just
before control is returned to the prompt; in a Python program this happens just
Expand Down

0 comments on commit 1294fce

Please sign in to comment.