paper-dynasty-discord/command_logic
Cal Corum afc76db241 fix: guard roll_back against NameError when db_post fails in complete_game (#27)
Initialize db_game = None before the try block so the except clause can
safely check `if db_game is not None` before attempting rollback. Previously,
if db_post raised before assigning db_game, the except block would raise a
NameError, masking the original error and skipping rollback entirely.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 01:33:09 -06:00
..
__init__.py fix: add locked_play context manager to prevent stuck play locks 2026-02-10 21:54:44 -06:00
logic_gameplay.py fix: guard roll_back against NameError when db_post fails in complete_game (#27) 2026-03-07 01:33:09 -06:00
play_context.py fix: add locked_play context manager to prevent stuck play locks 2026-02-10 21:54:44 -06:00