Skip to content

Commit

Permalink
apply: black
Browse files Browse the repository at this point in the history
  • Loading branch information
Matze08 committed Jan 28, 2025
1 parent df1dfa0 commit 9803043
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cdxev/vex.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def get_list_of_ids(input_file: dict[str, Any], scheme: str) -> str:
list_str += "ID,RefID,Description,Status\n"
for vulnerability in input_file.get("vulnerabilities", []):
vul_id = vulnerability.get("id", "-")
vul_ref_id = vulnerability.get("references", [{"id": "-"}])[0].get("id", "-")
vul_ref_id = vulnerability.get("references", [{"id": "-"}])[0].get(
"id", "-"
)
vul_description = vulnerability.get("description", "-")
vul_state = vulnerability.get("analysis", {}).get("state", "-")
list_str += (
Expand Down

0 comments on commit 9803043

Please sign in to comment.