Skip to content

Commit 443af64

Browse files
iritkatrielaisk
authored andcommitted
pythongh-101578: [doc] mention that PyErr_GetRaisedException returns NULL when the error indicator is not set (python#113369)
1 parent 499bc7c commit 443af64

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
@@ -440,7 +440,7 @@ Querying the error indicator
440440
.. c:function:: PyObject *PyErr_GetRaisedException(void)
441441
442442
Return the exception currently being raised, clearing the error indicator at
443-
the same time.
443+
the same time. Return ``NULL`` if the error indicator is not set.
444444
445445
This function is used by code that needs to catch exceptions,
446446
or code that needs to save and restore the error indicator temporarily.

0 commit comments

Comments
 (0)