Skip to content

Commit 05a0505

Browse files
fix: sbom parse inaccurate log (#4683)
Signed-off-by: Aryan Bakliwal <[email protected]>
1 parent 561b48a commit 05a0505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cve_bin_tool/sbom_manager/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def parse_cyclonedx_spdx(self) -> [(str, str, str)]:
302302

303303
if (not version) and (package.get("version") is not None):
304304
version = package["version"]
305-
else:
305+
elif version is None:
306306
LOGGER.debug(f"No version found in {package}")
307307

308308
if version:

0 commit comments

Comments
 (0)