summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-09-24 14:54:18 +0200
committerJürg Billeter <j@bitron.ch>2020-09-28 14:30:39 +0200
commit5ad83f6a9a5d8e2cac01ee9afdfe07d363151270 (patch)
tree53e658f90280204fe03f03d8fccaf23e56a31abf
parentcecf8489e803d9bc847dc3845bff1591575db3e1 (diff)
downloadbuildstream-5ad83f6a9a5d8e2cac01ee9afdfe07d363151270.tar.gz
_artifact.py: Assert that proto is available after `set_cached()`
-rw-r--r--src/buildstream/_artifact.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buildstream/_artifact.py b/src/buildstream/_artifact.py
index 048f09cc6..f6af294a4 100644
--- a/src/buildstream/_artifact.py
+++ b/src/buildstream/_artifact.py
@@ -462,6 +462,7 @@ class Artifact:
#
def set_cached(self):
self._proto = self._load_proto()
+ assert self._proto
self._cached = True
# load_proto()