We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 235e800 commit a678975Copy full SHA for a678975
1 file changed
src/codemodder/codeql.py
@@ -45,7 +45,12 @@ def from_sarif(
45
46
locations: list[Location] = []
47
for location in sarif_result["locations"]:
48
- codeql_location = CodeQLLocation.from_sarif(location)
+ try:
49
+ codeql_location = CodeQLLocation.from_sarif(location)
50
+ except KeyError:
51
+ # TODO: handle this case more gracefully
52
+ continue
53
+
54
locations.append(codeql_location)
55
return cls(rule_id=rule_data["id"], locations=locations)
56
0 commit comments