mirror of
https://github.com/modelscope/modelscope.git
synced 2026-09-01 19:49:03 +02:00
Fix raise file integrity error
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user