mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Merge pull request #365 from PaleNeutron/develop
fix a bug bug with VERIFY MD5 CHECKSUMS
This commit is contained in:
commit
efb3ca0406
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ for f in files:
|
|||
|
||||
print('Verifying MD5 checksums...')
|
||||
for f, checksum in zip(files, checksums):
|
||||
downloadsum = hashlib.md5(open(f, 'r').read()).hexdigest()
|
||||
downloadsum = hashlib.md5(open(f, 'rb').read()).hexdigest()
|
||||
if downloadsum != checksum:
|
||||
raise IOError("MD5 checksum for {} does not match. If this is your first "
|
||||
"time receiving this message, please re-run the script. "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue