You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message=f"Dataset '{path}' is a gated dataset on the Hub."
if"401 Client Error"instr(e):
message+=" You must be authenticated to access it."
elif"403 Client Error"instr(e):
message+=f" Visit the dataset page at https://huggingface.co/datasets/{path} to ask for access."
raiseDatasetNotFoundError(message) frome
We should remove the dead code and properly handle this case: currently we are raising a ConnectionError instead of a DatasetNotFoundError (as before).
Since the Hub returns dataset info for gated datasets and unauthenticated users, there is dead code:
datasets/src/datasets/load.py
Lines 1846 to 1852 in 98fdc9e
We should remove the dead code and properly handle this case: currently we are raising a
ConnectionError
instead of aDatasetNotFoundError
(as before).See:
The text was updated successfully, but these errors were encountered: