When a C API function encounters an error, the standard practice is to set the exception indicator and return an error sentinel (e.g., `NULL` for `PyObject*` or `-1` for integers). The calling C function should then clean up its resources (often using `goto error` and `Py_XDECREF`) and propagate the existing error by returning its own error indicator, rather than setting a new exception and overwriting crucial error details. [1, 2, 3, 7, 9, 10]