X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ff3645c9c262f5a2aca67ba42ba86084d0e9978a..1f2223927141f11055c740c9c047ba007ab81e14:/sdk/python/arvados/keep.py diff --git a/sdk/python/arvados/keep.py b/sdk/python/arvados/keep.py index 8dbad2abb1..b9e22748c1 100644 --- a/sdk/python/arvados/keep.py +++ b/sdk/python/arvados/keep.py @@ -346,15 +346,12 @@ class KeepBlockCache(object): # to free up resources, which would make the operation # succeed. slot.set(blob) - self.cap_cache() except Exception as e: # It failed again. Give up. + slot.set(None) raise arvados.errors.KeepCacheError("Unable to save block %s to disk cache: %s" % (slot.locator, e)) - finally: - # Set the notice that that we are done with the cache - # slot one way or another. - slot.ready.set() + self.cap_cache() class Counter(object): def __init__(self, v=0):