Skip to content

Commit f3d3663

Browse files
[3.12] gh-101578: [doc] mention that PyErr_GetRaisedException returns NULL when the error indicator is not set (GH-113369) (#113606)
gh-101578: [doc] mention that PyErr_GetRaisedException returns NULL when the error indicator is not set (GH-113369) (cherry picked from commit 2849cbb) Co-authored-by: Irit Katriel <[email protected]>
1 parent a8011d5 commit f3d3663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ Querying the error indicator
427427
.. c:function:: PyObject *PyErr_GetRaisedException(void)
428428
429429
Return the exception currently being raised, clearing the error indicator at
430-
the same time.
430+
the same time. Return ``NULL`` if the error indicator is not set.
431431
432432
This function is used by code that needs to catch exceptions,
433433
or code that needs to save and restore the error indicator temporarily.

0 commit comments

Comments
 (0)