Skip to content

Commit

Permalink
Fix regression with DatasetNotFoundError instead of GatedRepoError
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvillanova committed Sep 26, 2024
1 parent 22de57f commit ad74707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def test_doesnotexist(
# should we really test the following cases?
# The assumption is that the dataset exists and is accessible with the token
("does_not_exist", False, "SplitNamesFromStreamingError", "DatasetNotFoundError"),
("gated", False, "SplitNamesFromStreamingError", "GatedRepoError"), # See: huggingface/datasets#7109
("gated", False, "SplitNamesFromStreamingError", "DatasetNotFoundError"),
("private", False, "SplitNamesFromStreamingError", "DatasetNotFoundError"),
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_compute_too_many_configs(
# should we really test the following cases?
# The assumption is that the dataset exists and is accessible with the token
("does_not_exist", False, "RetryableConfigNamesError", "DatasetNotFoundError"),
("gated", False, "RetryableConfigNamesError", "GatedRepoError"), # See: huggingface/datasets#7109
("gated", False, "RetryableConfigNamesError", "DatasetNotFoundError"),
("private", False, "RetryableConfigNamesError", "DatasetNotFoundError"),
],
)
Expand Down

0 comments on commit ad74707

Please sign in to comment.