diff --git a/octue/runner.py b/octue/runner.py index 1b1b49a7b..e9645a544 100644 --- a/octue/runner.py +++ b/octue/runner.py @@ -328,10 +328,14 @@ def _validate_dataset_file_tags(self, manifest_kind, manifest): manifest_schema = getattr(self.twine, manifest_kind) for dataset_name, dataset_schema in manifest_schema["datasets"].items(): + # Allow optional manifests. + if not manifest: + continue + dataset = manifest.datasets.get(dataset_name) file_tags_template = dataset_schema.get("file_tags_template") - # Allow optional datasets in future (not currently allowed by `twined`). + # Allow optional datasets. if not (dataset and file_tags_template): continue