summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--obnamlib/fmt_ga/leaf_store.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/obnamlib/fmt_ga/leaf_store.py b/obnamlib/fmt_ga/leaf_store.py
index 7ba0f48a..e07434e1 100644
--- a/obnamlib/fmt_ga/leaf_store.py
+++ b/obnamlib/fmt_ga/leaf_store.py
@@ -74,6 +74,13 @@ class LeafStore(LeafStoreInterface): # pragma: no cover
def get_leaf(self, leaf_id):
tracing.trace('leaf_id %s', leaf_id)
+
+ blob = self._blob_store.get_blob(leaf_id)
+ if blob is None:
+ tracing.trace('no blob for leaf %r', leaf_id)
+ return None
+
+ tracing.trace('got blob for leaf %r', leaf_id)
leaf = obnamlib.CowLeaf()
leaf.from_dict(self._blob_store.get_blob(leaf_id))
return leaf