From 6dd95088dcd341dc5fcb9b6c3c3e3dceed852520 Mon Sep 17 00:00:00 2001 From: Moritz von Berg Date: Wed, 10 Sep 2025 01:44:09 +0200 Subject: [PATCH] rephrased sys.excephook section about auditing events Co-authored-by: MeGaGiGaGon --- Doc/library/sys.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 34764a7e4f097b..1ab52ead95aa14 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -450,10 +450,10 @@ always available. Unless explicitly noted otherwise, all variables are read-only Raise an auditing event ``sys.excepthook`` with arguments ``hook``, ``type``, ``value``, ``traceback`` when an uncaught exception occurs. - If no hook has been set, ``hook`` may be ``None``. If any hook raises - an exception derived from :class:`RuntimeError` the call to the hook will - be suppressed. Otherwise, the audit hook exception will be reported as - unraisable and ``sys.excepthook`` will be called. + If no hook has been set, ``hook`` may be ``None``. If any audit hook + raises an exception derived from :class:`RuntimeError` the call to that + audit hook will be suppressed. Otherwise, the audit hook exception will be + reported as unraisable and ``sys.excepthook`` will be called. .. seealso::