auto-python
Installation
SKILL.md
Python — Patterns Claude Inconsistently Applies
Exception Specificity
Claude catches broad Exception where specific types exist. Always catch the narrowest type:
# WRONG — overly broad, masks bugs
try:
result = parse(data)
except Exception:
result = default
# WRONG — Exception alongside specific type is redundant and broad
except (ProcessingError, Exception) as exc:
handle(exc)