Skip to content

Commit

Permalink
Use the non-private API for hf_hub errors
Browse files Browse the repository at this point in the history
We were loading from a private module and it looks like the API changed
in 0.25 (see Azure errors). This moves to using the public `errors`
module, which should be less likely to break without warning.
  • Loading branch information
ethanwhite committed Sep 19, 2024
1 parent 562dedb commit 2dcec72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepforest/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import json
import urllib.request
from huggingface_hub import hf_hub_download
from huggingface_hub.utils._errors import RevisionNotFoundError, HfHubHTTPError
from huggingface_hub.errors import RevisionNotFoundError, HfHubHTTPError


def read_config(config_path):
Expand Down

0 comments on commit 2dcec72

Please sign in to comment.