Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

fix: log skipped invalid gitignore patterns to stderr

claude[bot]d919a0cf00ed
diff --git a/understand-anything-plugin/skills/understand-domain/extract-domain-context.py b/understand-anything-plugin/skills/understand-domain/extract-domain-context.py
index 99d82d90..061206a6 100755
--- a/understand-anything-plugin/skills/understand-domain/extract-domain-context.py
+++ b/understand-anything-plugin/skills/understand-domain/extract-domain-context.py
@@ -133,8 +133,8 @@ def parse_gitignore(project_root: Path) -> list[re.Pattern[str]]:
regex = regex.rstrip("/") + "(/|$)"
try:
patterns.append(re.compile(regex))
- except re.error:
- pass
+ except re.error as e:
+ print(f"Warning: skipping invalid gitignore pattern '{line}': {e}", file=sys.stderr)
return patterns