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
/
__init__.py
diff --git
a/python/cumulus/store/__init__.py
b/python/cumulus/store/__init__.py
index
08b4517
..
7c43b69
100644
(file)
--- a/
python/cumulus/store/__init__.py
+++ b/
python/cumulus/store/__init__.py
@@
-1,4
+1,4
@@
-import re, urlparse
+import
exceptions,
re, urlparse
type_patterns = {
'checksums': re.compile(r"^snapshot-(.*)\.(\w+)sums$"),
type_patterns = {
'checksums': re.compile(r"^snapshot-(.*)\.(\w+)sums$"),
@@
-6,6
+6,11
@@
type_patterns = {
'snapshots': re.compile(r"^snapshot-(.*)\.lbs$")
}
'snapshots': re.compile(r"^snapshot-(.*)\.lbs$")
}
+class NotFoundError(exceptions.KeyError):
+ """Exception thrown when a file is not found in a repository."""
+
+ pass
+
class Store:
"""Base class for all cumulus storage backends."""
class Store:
"""Base class for all cumulus storage backends."""