X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=python%2Fcumulus%2Fstore%2Ffile.py;h=6b16fb65115f4b5900ba033a0f672f290cb2ab49;hp=6034835c276ee15d7ae8bcd1f9398a7e56578011;hb=c519cb09affc7e3235a7d75c349ef4cdddc778e0;hpb=51fabdfbff5dcccfee4df5dd691257c8c19d2962 diff --git a/python/cumulus/store/file.py b/python/cumulus/store/file.py index 6034835..6b16fb6 100644 --- 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): - 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