[3.12] gh-101578: [doc] mention that PyErr_GetRaisedException returns… · python/cpython@f3d3663

GitHub

Original file line numberDiff line numberDiff line change@@ -427,7 +427,7 @@ Querying the error indicator

427427.. c:function:: PyObject *PyErr_GetRaisedException(void)

428428429429 Return the exception currently being raised, clearing the error indicator at

430- the same time.

430+ the same time. Return ``NULL`` if the error indicator is not set.

431431432432 This function is used by code that needs to catch exceptions,

433433 or code that needs to save and restore the error indicator temporarily.