Skip to content

Commit 6dd9508

Browse files
rephrased sys.excephook section about auditing events
Co-authored-by: MeGaGiGaGon <[email protected]>
1 parent 137519a commit 6dd9508

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/sys.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,10 +450,10 @@ always available. Unless explicitly noted otherwise, all variables are read-only
450450

451451
Raise an auditing event ``sys.excepthook`` with arguments ``hook``,
452452
``type``, ``value``, ``traceback`` when an uncaught exception occurs.
453-
If no hook has been set, ``hook`` may be ``None``. If any hook raises
454-
an exception derived from :class:`RuntimeError` the call to the hook will
455-
be suppressed. Otherwise, the audit hook exception will be reported as
456-
unraisable and ``sys.excepthook`` will be called.
453+
If no hook has been set, ``hook`` may be ``None``. If any audit hook
454+
raises an exception derived from :class:`RuntimeError` the call to that
455+
audit hook will be suppressed. Otherwise, the audit hook exception will be
456+
reported as unraisable and ``sys.excepthook`` will be called.
457457

458458
.. seealso::
459459

0 commit comments

Comments
 (0)