diff options
Diffstat (limited to 'grc/core')
-rw-r--r-- | grc/core/platform.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/core/platform.py b/grc/core/platform.py index 6aeaef2367..46a795bd0b 100644 --- a/grc/core/platform.py +++ b/grc/core/platform.py @@ -151,7 +151,6 @@ class Platform(Element): with Cache(Constants.CACHE_FILE) as cache: for file_path in self._iter_files_in_block_path(path): - data = cache.get_or_load(file_path) if file_path.endswith('.block.yml'): loader = self.load_block_description @@ -167,6 +166,7 @@ class Platform(Element): try: checker = schema_checker.Validator(scheme) + data = cache.get_or_load(file_path) passed = checker.run(data) for msg in checker.messages: logger.warning('{:<40s} {}'.format(os.path.basename(file_path), msg)) |