Skip to content

Commit 5ba87dd

Browse files
authored
fixed:nvd data mismatch results in critical error (#421)
1 parent d66dcbd commit 5ba87dd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cve_bin_tool/cvedb.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ def cache_update(cachedir, url, sha, chunk_size=16 * 1024, logger=LOGGER):
108108
gotsha = calculate.hexdigest().upper()
109109
if gotsha != sha:
110110
os.unlink(filepath)
111-
logger.critical(
112-
f"SHA mismatch for {filename} (have: {gotsha}, want: {sha})"
113-
)
111+
logger.warning(f"SHA mismatch for {filename} (have: {gotsha}, want: {sha})")
114112
else:
115113
logger.debug(f"Correct SHA for {filename}")
116114
return

0 commit comments

Comments
 (0)