]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101578: [doc] mention that PyErr_GetRaisedException returns NULL when the error...
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
Sun, 31 Dec 2023 23:16:33 +0000 (23:16 +0000)
committerGitHub <noreply@github.com>
Sun, 31 Dec 2023 23:16:33 +0000 (23:16 +0000)
Doc/c-api/exceptions.rst

index 284a9c71e420da771d1a74dcc4ec91769bc3a642..c7e3cd9463e5d77e992b58969290d9fff974f07d 100644 (file)
@@ -440,7 +440,7 @@ Querying the error indicator
 .. c:function:: PyObject *PyErr_GetRaisedException(void)
 
    Return the exception currently being raised, clearing the error indicator at
-   the same time.
+   the same time. Return ``NULL`` if the error indicator is not set.
 
    This function is used by code that needs to catch exceptions,
    or code that needs to save and restore the error indicator temporarily.