Skip to content

Commit 7d7d10c

Browse files
immortal71Copilot
andauthored
Update scripts/capec_map_enricher.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8c93a59 commit 7d7d10c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/capec_map_enricher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def extract_capec_names(json_data: dict[str, Any]) -> dict[int, str]:
8989
logging.warning("No 'Category' key found in categories section")
9090
else:
9191
_extract_names_from_items(
92-
catalog["Categories"]["Category"], capec_names, warn_if_not_list=True, label="Category"
92+
categories["Category"], capec_names, warn_if_not_list=True, label="Category"
9393
)
9494

9595
logging.info("Extracted %d CAPEC name mappings", len(capec_names))

0 commit comments

Comments
 (0)