Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/detect_missing_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
Outputs a system reminder suggesting the cli-tools skill when a missing tool is detected.
"""

import sys
import re
import json
import re
import sys

# Patterns that indicate a missing command/tool
MISSING_PATTERNS = [
Expand Down Expand Up @@ -40,7 +40,7 @@ def main():
# Read tool output from stdin (Claude Code passes tool result)
try:
input_data = sys.stdin.read()
except Exception:
except Exception: # noqa: BLE001 - hook must fail open on any stdin read error
return

if not input_data:
Expand Down
Loading