Fix raise file integrity error

This commit is contained in:
班扬
2025-09-29 10:33:18 +08:00
parent 7a37e99b6b
commit 7821037af7

View File

@@ -163,7 +163,7 @@ def file_integrity_validation(file_path, expected_sha256):
msg = 'File %s integrity check failed, expected sha256 signature is %s, actual is %s, the download may be incomplete, please try again.' % ( # noqa E501
file_path, expected_sha256, file_sha256)
logger.error(msg)
raise FileIntegrityError(msg)
# raise FileIntegrityError(msg) # TODO: Note that this will ignore the incomplete file in the future
def add_content_to_file(repo,