diff --git a/aeon/datasets/monster_loader.py b/aeon/datasets/monster_loader.py index 7fe92b404e..f8722b8ecf 100644 --- a/aeon/datasets/monster_loader.py +++ b/aeon/datasets/monster_loader.py @@ -21,7 +21,7 @@ def load_monster_dataset_names() -> list[str]: list of str A list of available Monster dataset names. """ - _check_soft_dependencies("huggingface-hub") + _check_soft_dependencies("huggingface_hub") from huggingface_hub import list_datasets datasets = list_datasets(author=ORG_ID) @@ -87,9 +87,8 @@ def load_monster_dataset( Time Series Evaluation Repository. arXiv preprint arXiv:2502.15122. """ - _check_soft_dependencies("huggingface-hub") + _check_soft_dependencies("huggingface_hub") from huggingface_hub import hf_hub_download - from huggingface_hub.utils import HfHubDownloadError repo_id = f"{ORG_ID}/{dataset_name}" @@ -106,7 +105,7 @@ def load_monster_dataset( label_path = hf_hub_download( repo_id=repo_id, filename=label_filename, repo_type="dataset" ) - except HfHubDownloadError: + except Exception: label_filename = f"{dataset_name}_y.npy" label_path = hf_hub_download( repo_id=repo_id, filename=label_filename, repo_type="dataset"