Skip to content

Commit

Permalink
docs: ✏️ add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
severo committed Oct 4, 2021
1 parent 69ec4b8 commit 0985d62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/datasets_preview_backend/queries/infos.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def get_infos(dataset: str, config: Optional[str] = None, token: Optional[str] =
# Note that we raise on the first error
for config in configs:
try:
# TODO: use get_dataset_infos if https://github.com/huggingface/datasets/issues/3013 is fixed
builder = load_dataset_builder(dataset, name=config, use_auth_token=token)
info = asdict(builder.info)
if "splits" in info and info["splits"] is not None:
Expand Down

0 comments on commit 0985d62

Please sign in to comment.