From 786d3ba65ebb823bc84cd88bd9b43902957b1165 Mon Sep 17 00:00:00 2001 From: Lucain Date: Mon, 28 Oct 2024 18:29:21 +0100 Subject: [PATCH] Update consistent error message (we can't do much about it) (#2641) --- src/huggingface_hub/file_download.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/huggingface_hub/file_download.py b/src/huggingface_hub/file_download.py index 46d5ccaead..47bd055871 100644 --- a/src/huggingface_hub/file_download.py +++ b/src/huggingface_hub/file_download.py @@ -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