Skip to main content

get_pickled_exception

Reverse of :meth:get_pickleable_exception.

def get_pickled_exception(
exc: Union[Exception, UnpickleableExceptionWrapper]
) - > Exception

Reverse of :meth:get_pickleable_exception.

Parameters

NameTypeDescription
excUnion[Exception, UnpickleableExceptionWrapper]The exception object to process, which may be an instance of UnpickleableExceptionWrapper needing restoration.

Returns

TypeDescription
ExceptionThe original exception restored from its wrapper, or the input exception if it was not wrapped.