diff options
-rw-r--r-- | buildstream/_artifactcache/ostreecache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_artifactcache/ostreecache.py b/buildstream/_artifactcache/ostreecache.py index 182b3f9c6..39e7efb34 100644 --- a/buildstream/_artifactcache/ostreecache.py +++ b/buildstream/_artifactcache/ostreecache.py @@ -101,8 +101,8 @@ class OSTreeCache(ArtifactCache): # resolve ref to checksum rev = _ostree.checksum(self.repo, ref) - if not rev: - raise ArtifactError("Artifact missing for {}".format(ref)) + # Extracting a nonexistent artifact is a bug + assert rev, "Artifact missing for {}".format(ref) dest = os.path.join(self.extractdir, element._get_project().name, element.normal_name, rev) if os.path.isdir(dest): |