From 5ad83f6a9a5d8e2cac01ee9afdfe07d363151270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Thu, 24 Sep 2020 14:54:18 +0200 Subject: _artifact.py: Assert that proto is available after `set_cached()` --- src/buildstream/_artifact.py | 1 + 1 file changed, 1 insertion(+) 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() -- cgit v1.2.1