MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / from_string

Method from_string

advanced_vuln_scanner.py:53–58  ·  view source on GitHub ↗

Convert string to severity, with fallback

(cls, value: str)

Source from the content-addressed store, hash-verified

51 CRITICAL = "critical"
52
53 @classmethod
54 def from_string(cls, value: str) -> 'VulnSeverity':
55 """Convert string to severity, with fallback"""
56 try:
57 return cls(value.lower())
58 except ValueError:
59 return cls.INFO
60
61

Callers 1

_dict_to_findingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected