Major Domo v2 - Discord bot for Strat-o-Matic Baseball Association
Go to file
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
.gitea/workflows Fix act_runner auth: short-form local actions + full GitHub URLs 2026-02-18 13:32:15 -06:00
.vscode VS Code Settings 2025-11-06 21:50:47 -06:00
api CLAUDE: Add automated weekly transaction freeze/thaw system 2025-10-20 12:16:13 -05:00
commands fix: ContextualLogger crashes when callers pass exc_info=True 2026-02-19 21:19:06 -06:00
models Add draft pause/resume functionality 2025-12-11 19:58:37 -06:00
services fix: roster validation now includes pending trades and fixes sWAR field name 2026-02-15 22:57:06 -06:00
tasks Fix thaw report posting to use channel ID instead of nonexistent channel names 2026-02-15 18:01:39 -06:00
tests fix: roster validation now includes pending trades and fixes sWAR field name 2026-02-15 22:57:06 -06:00
utils fix: ContextualLogger crashes when callers pass exc_info=True 2026-02-19 21:19:06 -06:00
views fix: ContextualLogger crashes when callers pass exc_info=True 2026-02-19 21:19:06 -06:00
.dockerignore Add debug directory to .gitignore and .dockerignore 2025-10-24 00:06:34 -05:00
.gitignore Draft pick service and draft helpers 2025-10-24 10:24:14 -05:00
bot.py Add dev-only loaded dice command for testing /ab rolls 2026-01-07 22:45:01 -06:00
CLAUDE.md ci: Switch to CalVer (YYYY.MM.BUILD) with auto-generated versions 2026-02-17 16:29:24 -06:00
COMMAND_LIST.md CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
config.py Fix thaw report posting to use channel ID instead of nonexistent channel names 2026-02-15 18:01:39 -06:00
docker-compose.dev.yml CLAUDE: Add comprehensive Docker deployment infrastructure 2025-10-16 00:54:56 -05:00
docker-compose.yml Fix @requires_team decorator API error handling 2025-11-14 09:31:14 -06:00
DOCKER.md CLAUDE: Add comprehensive Docker deployment infrastructure 2025-10-16 00:54:56 -05:00
Dockerfile CLAUDE: Add comprehensive Docker deployment infrastructure 2025-10-16 00:54:56 -05:00
exceptions.py CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
pyrightconfig.json CLAUDE: Convert constants to configurable environment variables 2025-10-16 10:40:22 -05:00
requirements.txt CLAUDE: Add comprehensive Docker deployment infrastructure 2025-10-16 00:54:56 -05:00
VERSION Bump version to 2.29.9 2026-02-15 22:58:55 -06:00