[ARVADOS] updated: b6c7ee612c09a110b6e2a87a12eebc5b81a7a2e8

git at public.curoverse.com git at public.curoverse.com
Tue Apr 28 09:47:02 EDT 2015


Summary of changes:
 sdk/python/arvados/keep.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  b6c7ee612c09a110b6e2a87a12eebc5b81a7a2e8 (commit)
      from  040fdf6da00318b5b8e8e83eceeec783680ecb1c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit b6c7ee612c09a110b6e2a87a12eebc5b81a7a2e8
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Tue Apr 28 09:46:58 2015 -0400

    Check if cache slot is not None before trying to test the read flag.  refs #5831

diff --git a/sdk/python/arvados/keep.py b/sdk/python/arvados/keep.py
index 842a36d..76b5c18 100644
--- a/sdk/python/arvados/keep.py
+++ b/sdk/python/arvados/keep.py
@@ -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 is not None and slot.ready.is_set():
             return slot.get()
         else:
             return None

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list