Skip to content

Commit

Permalink
FIX: Skip dataset validation for missing optional manifests
Browse files Browse the repository at this point in the history
skipci
  • Loading branch information
cortadocodes committed Dec 12, 2024
1 parent 357921d commit 6dc54b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion octue/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6dc54b4

Please sign in to comment.