diff options
author | drebs <drebs@leap.se> | 2017-12-06 18:47:24 -0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-12-13 13:43:47 -0200 |
commit | 40258d7bfa57b4d73c10592c13c5a11aaf792446 (patch) | |
tree | 38c324643774ea28168657fb338ed0a7838d61df | |
parent | 9453dbea89ec9f7a0f0bd196b56552464639087c (diff) |
[feature] add an exception for blobs not found
-rw-r--r-- | src/leap/soledad/server/_blobs.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/leap/soledad/server/_blobs.py b/src/leap/soledad/server/_blobs.py index 30dcb60b..3113e12c 100644 --- a/src/leap/soledad/server/_blobs.py +++ b/src/leap/soledad/server/_blobs.py @@ -58,6 +58,12 @@ VALID_STRINGS = re.compile('^[a-zA-Z0-9_-]+$') # [ ] chunking (should we do it on the client or on the server?) +class BlobNotFound(Exception): + """ + Raised when a blob is not found in data storage backend. + """ + + @implementer(interfaces.IBlobsBackend) class FilesystemBlobsBackend(object): |