Skip to content

Commit b7c5189

Browse files
committed
Raise RuntimeError in graph function if flavor is None
1 parent 48f77a8 commit b7c5189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gardenlinux/features/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def graph_as_mermaid_markup(flavor: str | None, graph: Any) -> str:
242242
"""
243243

244244
if flavor is None:
245-
return "No flavor provided. Skipping."
245+
raise RuntimeError("Error while generating graph: Flavor is None!")
246246

247247
markup = f"---\ntitle: Dependency Graph for Feature {flavor}\n---\ngraph TD;\n"
248248

0 commit comments

Comments
 (0)