Skip to content

Commit 786d3ba

Browse files
authored
Update consistent error message (we can't do much about it) (#2641)
1 parent 01bdce3 commit 786d3ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/huggingface_hub/file_download.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,8 @@ def http_get(
390390

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

398397
# Stream file to buffer

0 commit comments

Comments
 (0)