gh-101578: [doc] mention that PyErr_GetRaisedException returns NULL when the error indicator is not set (#113369)

This commit is contained in:
Irit Katriel 2023-12-31 23:16:33 +00:00 committed by GitHub
parent 30a6d79fb8
commit 2849cbb53a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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.