Skip to content

Commit 78aa05e

Browse files
committed
Fix access of variable that does
not exist.
1 parent a6faec5 commit 78aa05e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contentctl/objects/rba.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,5 @@ def severity(self)->RiskSeverity:
8686
elif 80 < self.risk_score <= 100:
8787
return RiskSeverity.CRITICAL
8888
else:
89-
raise Exception(f"Error getting severity - risk_score must be between 0-100, but was actually {max_score}")
89+
raise Exception(f"Error getting severity - risk_score must be between 0-100, but was actually {self.risk_score}")
9090

0 commit comments

Comments
 (0)