Skip to content

Commit

Permalink
Update consistent error message (we can't do much about it) (#2641)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin authored Oct 28, 2024
1 parent 01bdce3 commit 786d3ba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/huggingface_hub/file_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,8 @@ def http_get(

consistency_error_message = (
f"Consistency check failed: file should be of size {expected_size} but has size"
f" {{actual_size}} ({displayed_filename}).\nWe are sorry for the inconvenience. Please retry"
" with `force_download=True`.\nIf the issue persists, please let us know by opening an issue "
"on https://github.com/huggingface/huggingface_hub."
f" {{actual_size}} ({displayed_filename}).\nThis is usually due to network issues while downloading the file."
" Please retry with `force_download=True`."
)

# Stream file to buffer
Expand Down

0 comments on commit 786d3ba

Please sign in to comment.