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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| logic_gameplay.py | ||
| play_context.py | ||