Skip to content

Commit daf2e71

Browse files
authored
Fix HTTPError when Too Many Requests for huggingface hub (#7765)
Fixes #7764 ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
1 parent ab4bd43 commit daf2e71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ def skip_if_downloading_fails():
156156
"limit", # HTTP Error 503: Egress is over the account limit
157157
"authenticate",
158158
"timed out", # urlopen error [Errno 110] Connection timed out
159+
"HTTPError", # HTTPError: 429 Client Error: Too Many Requests for huggingface hub
159160
)
160161
):
161162
raise unittest.SkipTest(f"error while downloading: {rt_e}") from rt_e # incomplete download

0 commit comments

Comments
 (0)