Skip to content

Commit

Permalink
Fixing dataset name check: if neither DatasetDict or str
Browse files Browse the repository at this point in the history
  • Loading branch information
gubertoli authored Apr 4, 2024
1 parent 26ed66d commit e5fb7e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasets/flwr_datasets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _check_if_dataset_tested(dataset: Union[str, DatasetDict]) -> None:
f"The currently tested dataset are {tested_datasets}. Given: {dataset}.",
stacklevel=1,
)
if type(dataset) is not DatasetDict:
elif type(dataset) not in [DatasetDict, str]:
raise TypeError(
"The provided dataset is not in the DatasetDict format."
)
Expand Down

0 comments on commit e5fb7e1

Please sign in to comment.