Merge branch '3198-inode-cache' into 3198-writable-fuse, fix tests.
[arvados.git] / sdk / python / arvados / keep.py
index 842a36d8ed6145062f166347f4b79126eadce196..cca9345bc5e9760d4b8f2d7a0b1d65aa69ffb5e1 100644 (file)
@@ -662,7 +662,7 @@ class KeepClient(object):
     def get_from_cache(self, loc):
         """Fetch a block only if is in the cache, otherwise return None."""
         slot = self.block_cache.get(loc)
-        if slot.ready.is_set():
+        if slot and slot.ready.is_set():
             return slot.get()
         else:
             return None