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
/
file.py
diff --git
a/python/cumulus/store/file.py
b/python/cumulus/store/file.py
index
6034835
..
6b16fb6
100644
(file)
--- a/
python/cumulus/store/file.py
+++ b/
python/cumulus/store/file.py
@@
-33,5
+33,8
@@
class FileStore(cumulus.store.Store):
os.unlink(k)
def stat(self, type, name):
os.unlink(k)
def stat(self, type, name):
- stat = os.stat(self._get_path(type, name))
- return {'size': stat.st_size}
+ try:
+ stat = os.stat(self._get_path(type, name))
+ return {'size': stat.st_size}
+ except OSError:
+ raise cumulus.store.NotFoundError