projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve handling of file-not-found in remote storage layer.
[cumulus.git]
/
python
/
cumulus
/
store
/
s3.py
diff --git
a/python/cumulus/store/s3.py
b/python/cumulus/store/s3.py
index
9fa006e
..
1e7257a
100644
(file)
--- a/
python/cumulus/store/s3.py
+++ b/
python/cumulus/store/s3.py
@@
-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)}