fix: guard db_game against NameError when db_post fails in complete_game (#27) #86

Merged
Claude merged 2 commits from ai/paper-dynasty-discord27 into main 2026-03-23 03:58:34 +00:00

2 Commits

Author SHA1 Message Date
829e03e3de Merge branch 'main' into ai/paper-dynasty-discord27
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m59s
2026-03-23 03:53:38 +00:00
Cal Corum
678fa320df fix: guard db_game against NameError when db_post fails in complete_game (#27)
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m24s
Initialize db_game = None before try block and guard roll_back call
with `if db_game is not None:` to prevent NameError masking the
original exception when db_post("games") raises before assignment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-10 10:32:48 -05:00