temporarily allow md5

This commit is contained in:
Louis Abel 2024-02-12 17:22:00 -07:00
parent 93f5fbe65d
commit 0913ae912f
Signed by: label
GPG Key ID: 2A6975660E424560
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ def get_checksum(file_path: str, hashtype: str = 'sha256') -> str:
Borrowed from empanadas with some modifications
"""
# We shouldn't be using sha1 or md5.
if hashtype in ('sha', 'sha1', 'md5'):
raise err.ProvidedValueError(f'{hashtype} is not allowed.')
#if hashtype in ('sha', 'sha1', 'md5'):
# raise err.ProvidedValueError(f'{hashtype} is not allowed.')
try:
checksum = hashlib.new(hashtype)