major-domo-v2/commands/league
Cal Corum 313c3f857b fix: ContextualLogger crashes when callers pass exc_info=True
ContextualLogger methods forwarded all **kwargs as extra={} to Python's
standard logger. When callers passed exc_info=True, it landed in the
extra dict and Python's LogRecord raised KeyError("Attempt to overwrite
'exc_info' in LogRecord") since exc_info is a reserved attribute.

This caused /submit-scorecard to crash after game data was already
posted, masking the original error and preventing proper rollback.

Fix: Extract exc_info and stack_info from kwargs before passing as extra,
forwarding them as proper logging parameters instead. Also fix direct
callers in submit_scorecard.py and views/players.py to use error=e.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 21:19:06 -06:00
..
__init__.py CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
CLAUDE.md CLAUDE: Add comprehensive CLAUDE.md documentation files for AI agent guidance 2025-10-20 20:30:07 -05:00
info.py CLAUDE: Add flexible permission system for multi-server support 2025-11-06 11:29:29 -06:00
schedule.py Consolidate season config variables to single source (v2.21.0) 2025-12-02 16:12:16 -06:00
standings.py Consolidate season config variables to single source (v2.21.0) 2025-12-02 16:12:16 -06:00
submit_scorecard.py fix: ContextualLogger crashes when callers pass exc_info=True 2026-02-19 21:19:06 -06:00