fix: validate player positions in lineup before game start #9

Merged
cal merged 2 commits from fix/position-validation-lineup into main 2026-02-08 03:17:24 +00:00

2 Commits

Author SHA1 Message Date
cal
a79bfbe6eb Update VERSION
All checks were successful
Build Docker Image / build (pull_request) Successful in 5m27s
2026-02-08 03:03:50 +00:00
Cal Corum
c4577ed46f fix: validate player positions in lineup before game start
Some checks failed
Build Docker Image / build (pull_request) Failing after 16s
Prevents PositionNotFoundException from crashing mlb-campaign when a
player is placed at a position they cannot play (e.g. an outfielder
listed at Catcher in the Google Sheet). Adds early validation in
get_lineups_from_sheets and proper error handling at all read_lineup
call sites so the user gets a clear message and the game is cleaned up.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 19:32:27 -06:00