From 0913ae912f11454602e02792515e530d09101704 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Mon, 12 Feb 2024 17:22:00 -0700 Subject: [PATCH] temporarily allow md5 --- pv2/util/fileutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pv2/util/fileutil.py b/pv2/util/fileutil.py index ef705db..8d3627a 100644 --- a/pv2/util/fileutil.py +++ b/pv2/util/fileutil.py @@ -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)