def suppressed_cache_errors():
    """If we can't access the cache then we can just skip caching and process
    requests as if caching wasn't enabled.
    """
    try:
        yield
    except (OSError, IOError):
        pass
If we can't access the cache then we can just skip caching and process
    requests as if caching wasn't enabled.
    
product/gradle-plugin/src/main/python/pip/_internal/network/cache.py