Skip to content

Commit 417a7b5

Browse files
miss-islingtoncjwatsonkumaraditya303hugovk
authored
[3.11] GH-90915: Document that SystemExit doesn't trigger sys.excepthook (GH-31357) (#109083)
Co-authored-by: Colin Watson <[email protected]> Co-authored-by: Kumar Aditya <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent cccb81d commit 417a7b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/sys.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ always available.
374374

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

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

0 commit comments

Comments
 (0)