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 (pythonGH-113369)

(cherry picked from commit 2849cbb)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
  • Loading branch information
iritkatriel authored and miss-islington committed Dec 31, 2023
1 parent a8011d5 commit facf8ed
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 @@ -427,7 +427,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 facf8ed

Please sign in to comment.