Skip to content

Commit 8b8e6ee

Browse files
authored
Fix: Missing a MetadataConfigs init when the repo has a datasets_info.json but no README (#6164)
MetadataConfigs not initialized when the repo has a `datasets_info.json` but no README
1 parent 72a5735 commit 8b8e6ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/datasets/arrow_dataset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5462,6 +5462,7 @@ def push_to_hub(
54625462
dataset_card = None
54635463
dataset_card_data = DatasetCardData()
54645464
download_config = DownloadConfig()
5465+
metadata_configs = MetadataConfigs()
54655466
download_config.download_desc = "Downloading metadata"
54665467
download_config.token = token
54675468
dataset_infos_path = cached_path(

0 commit comments

Comments
 (0)