fix: guard against None rating objects in pitcher sorting functions (#13) #50

Merged
cal merged 1 commits from ai/paper-dynasty-database#13 into next-release 2026-03-05 03:29:49 +00:00

1 Commits

Author SHA1 Message Date
Cal Corum
0948db0b49 fix: guard against None rating objects in pitcher sorting functions (#13)
Add None checks for vlval/vrval in get_total_ops inside sort_pitchers()
and sort_starters(). Returns float("inf") when ratings are missing so
pitchers without ratings sort to the end rather than raising AttributeError.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 03:25:28 +00:00