Skip to content

Commit

Permalink
Update services/worker/src/worker/job_runners/dataset/modalities.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sylvain Lesage <[email protected]>
  • Loading branch information
lhoestq and severo authored Jul 15, 2024
1 parent abaf965 commit aaf1745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/worker/src/worker/job_runners/dataset/modalities.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def detect_modalities_from_url_columns(dataset: str) -> set[DatasetModality]:
Returns:
`set[DatasetModality]`: A set of modalities.
"""
config_names_response = get_previous_step_or_raise(kind="dataset-split-names", dataset=dataset)
content = config_names_response["content"]
split_names_response = get_previous_step_or_raise(kind="dataset-split-names", dataset=dataset)
content = split_names_response["content"]
if "splits" not in content and not isinstance(content["splits"], list):
raise PreviousStepFormatError("Previous step did not return the expected content: 'splits'.")

Expand Down

0 comments on commit aaf1745

Please sign in to comment.