Skip to content

Commit

Permalink
pythongh-101578: [doc] mention that PyErr_GetRaisedException returns …
Browse files Browse the repository at this point in the history
…NULL when the error indicator is not set (python#113369)
  • Loading branch information
iritkatriel authored and aisk committed Feb 11, 2024
1 parent 499bc7c commit 443af64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/c-api/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 443af64

Please sign in to comment.