Skip to content

Commit

Permalink
catch ConnectionError when checking dataset from HuggingFace (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
Napuh authored Oct 19, 2023
1 parent 91a016f commit 992d57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def for_d_in_datasets(dataset_configs):
token=use_auth_token,
)
ds_from_hub = True
except FileNotFoundError:
except (FileNotFoundError, ConnectionError):
pass

# prefer local dataset, even if hub exists
Expand Down

0 comments on commit 992d57f

Please sign in to comment.