Skip to content

Commit 983388e

Browse files
committed
Changed error message
1 parent 2bd6116 commit 983388e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

cve_bin_tool/parsers/python.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,15 @@ def run_checker(self, filename):
2929
"-",
3030
"--quiet",
3131
],
32-
stderr=subprocess.STDOUT,
3332
)
34-
except subprocess.CalledProcessError as e:
35-
self.logger.error(f"Status : FAIL {e.returncode} {e.output}")
33+
except subprocess.CalledProcessError:
34+
self.logger.error(
35+
f"{filename} not scanned: pip --dry-run was unable to get package versions."
36+
)
37+
self.logger.error(
38+
"pip version >= 22.2 is required to scan python requirements files"
39+
)
40+
3641
else:
3742

3843
lines = json.loads(output)

0 commit comments

Comments
 (0)