def should_retry(exc):
    if isinstance(exc, socket.timeout):
        return True
    elif isinstance(exc, ssl.SSLError):
        # XXX: This is not a great way to check for a timeout.
        # However, e.errno is unset...
        return 'time' in exc[0]
    return False
If the C{"log_failure"} key exists in an event, and contains an object
dataset/ETHPy150Open ravello/testmill/lib/testmill/ravello.py/should_retry--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/logger/test/test_file.py/FileLogObserverTests.test_observeFailureThatRaisesInGetTraceback