Skip to content

Commit

Permalink
TypeError if custom dataset is not DatasetDict
Browse files Browse the repository at this point in the history
  • Loading branch information
gubertoli authored Apr 4, 2024
1 parent 5b1e523 commit 4c67721
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions datasets/flwr_datasets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ def _check_if_dataset_tested(dataset: Union[str, DatasetDict]) -> None:
stacklevel=1,
)
if type(dataset) is not DatasetDict:
warnings.warn(
f"The provided dataset is not in the DatasetDict format.",
stacklevel=1,
raise TypeError(
"The provided dataset is not in the DatasetDict format."
)


Expand Down

0 comments on commit 4c67721

Please sign in to comment.