def failure_to_exc_info(failure):
    if isinstance(failure, Failure):
        return (failure.type, failure.value, failure.getTracebackObject())
Extract exc_info from Failure instances
dataset/ETHPy150Open scrapy/scrapy/scrapy/utils/log.py/failure_to_exc_info