Improve handling of file-not-found in remote storage layer.
[cumulus.git] / python / cumulus / store / s3.py
index 9fa006e..1e7257a 100644 (file)
@@ -39,4 +39,6 @@ class S3Store(cumulus.store.Store):
 
     def stat(self, type, name):
         k = self.bucket.get_key("%s/%s/%s" % (self.prefix, type, name))
+        if k is None:
+            raise cumulus.store.NotFoundError
         return {'size': int(k.size)}