Skip to content

Commit 48476ad

Browse files
committed
Raise RuntimeError for unsupported OWASP Kubernetes parser modules in cre_main.py
1 parent cc633db commit 48476ad

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

application/cmd/cre_main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -925,12 +925,12 @@ def run(args: argparse.Namespace) -> None: # pragma: no cover
925925
db_connection_str=args.cache_file,
926926
)
927927
if getattr(args, "owasp_kubernetes_top10_2022_in", False):
928-
logger.warning(
929-
"--owasp_kubernetes_top10_2022_in requested, but no Kubernetes 2022 parser module is present in this branch; skipping"
928+
raise RuntimeError(
929+
"--owasp_kubernetes_top10_2022_in is not supported in this branch because the Kubernetes 2022 parser module is not implemented"
930930
)
931931
if getattr(args, "owasp_kubernetes_top10_2025_in", False):
932-
logger.warning(
933-
"--owasp_kubernetes_top10_2025_in requested, but no Kubernetes 2025 parser module is present in this branch; skipping"
932+
raise RuntimeError(
933+
"--owasp_kubernetes_top10_2025_in is not supported in this branch because the Kubernetes 2025 parser module is not implemented"
934934
)
935935
if getattr(args, "owasp_llm_top10_2025_in", False):
936936
from application.utils.external_project_parsers.parsers import (

0 commit comments

Comments
 (0)