Do not fail with no results and sarif output (#1229)

Close #1228
pull/1243/head
Mathis 2 years ago committed by GitHub
parent 3416d05d16
commit 6a2e1e0819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      slither/utils/output.py

@ -160,7 +160,7 @@ def output_to_sarif(
],
}
for detector in results["detectors"]:
for detector in results.get("detectors", []):
_output_result_to_sarif(detector, detectors_classes, sarif)
if filename == "-":

Loading…
Cancel
Save