Skip to main content

raise_last_exception

Raises the most recently captured exception if one exists in the internal state.

def raise_last_exception()

Reraises the most recent exception captured within the module's internal state. This is typically used to propagate errors that occurred during asynchronous or background processing to the main execution flow.

Returns

TypeDescription
This function does not return a value as it always raises an exception if one is stored.