Skip to content

Commit 437dc40

Browse files
committed
fix risk pipeline bug
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 70f778c commit 437dc40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vulnerabilities/risk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def get_weighted_severity(severities):
4343
weight = WEIGHT_CONFIG.get(severity_source, DEFAULT_WEIGHT)
4444
max_weight = float(weight) / 10
4545
vul_score = severity.value
46+
if not vul_score:
47+
continue
4648
try:
4749
vul_score = float(vul_score)
4850
vul_score_value = vul_score * max_weight

0 commit comments

Comments
 (0)