ac6c780419
Refactor repetitive try-except blocks using _safe_calculate_metric helper function to reduce code duplication and improve maintainability. Changes: - Add _safe_calculate_metric helper to centralize error handling - Remove misleading default values (0/"unknown") in summary fields - Use None defaults instead to clearly indicate unavailable data - Add final newline to file per convention This prevents LLMs from misinterpreting 0 as "zero investment potential" when it actually means "data unavailable". Addresses PR #2 review comments on lines 733, 749, and 759. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>