Commit 5c7b90ba authored by Tom Pollard's avatar Tom Pollard Assert cached in __load_public_data()

This moves the cached assertion to happen before calling the
Artifact method, which removes the need to loopback for the
same purpose.
parent 30ba6322
......@@ -245,9 +245,6 @@ class Artifact():
def load_public_data(self):
element = self._element
assert element._cached()
# Load the public data from the artifact
meta_vdir, _ = self._get_subdirectory('meta')
meta_file = meta_vdir._objpath('public.yaml')
......@@ -2876,6 +2876,7 @@ class Element(Plugin):
# Loads the public data from the cached artifact
def __load_public_data(self):
assert self.__dynamic_public is None
self.__dynamic_public = self.__artifact.load_public_data()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment