We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30a6d79 commit 2849cbbCopy full SHA for 2849cbb
Doc/c-api/exceptions.rst
@@ -440,7 +440,7 @@ Querying the error indicator
440
.. c:function:: PyObject *PyErr_GetRaisedException(void)
441
442
Return the exception currently being raised, clearing the error indicator at
443
- the same time.
+ the same time. Return ``NULL`` if the error indicator is not set.
444
445
This function is used by code that needs to catch exceptions,
446
or code that needs to save and restore the error indicator temporarily.
0 commit comments