catch ConnectionError when checking dataset from HuggingFace (#743)

This commit is contained in:
Napuh
2023-10-19 04:11:54 +02:00
committed by GitHub
parent 91a016f410
commit 992d57f20a

View File

@@ -158,7 +158,7 @@ def load_tokenized_prepared_datasets(
token=use_auth_token,
)
ds_from_hub = True
except FileNotFoundError:
except (FileNotFoundError, ConnectionError):
pass
# prefer local dataset, even if hub exists