c18941: fix cache_slot_get behavior
[arvados.git] / sdk / python / arvados / keep.py
index 43d71f17e4cb160238b729d740390f3f7a5bdde4..53776017dbad07cfc1e73f96f0f0d978626a4f98 100644 (file)
@@ -1105,6 +1105,7 @@ class KeepClient(object):
                                 "failed to read {}".format(loc_s))
                         return blob
                     else:
+                        slot = None  # prevent finally from calling slot.set()
                         return None
 
             self.misses_counter.add(1)