Skip to content

Commit

Permalink
gh-101578: [doc] mention that PyErr_GetRaisedException returns NULL w…
Browse files Browse the repository at this point in the history
…hen the error indicator is not set (#113369)
  • Loading branch information
iritkatriel committed Dec 31, 2023
1 parent 30a6d79 commit 2849cbb
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 2849cbb

Please sign in to comment.