You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(stats): Add input validation for numeric conversions
Added safe_int() helper function to validate inputs before converting to integers,
preventing potential ValueError exceptions on unexpected input types.
The function handles:
- None values (returns default)
- int/float types (safely converts)
- Numeric strings (validates and converts)
- Invalid types (logs warning and returns default)
This addresses the input validation issue identified in PR review.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments