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

View File

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