fix 500 error

master
Aevann1 2022-09-05 23:58:46 +02:00
parent c15e0f6fad
commit ae0dd18192
1 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,9 @@ def player_took_blackjack_action(v):
elif existing_game:
return { "error": "Cannot start a new game while an existing game persists." }
else:
success, game_state = gambler_dealt(v, currency, wager)
deal = gambler_dealt(v, currency, wager)
if not deal: return { "error": "Cannot start a new game while an existing game persists." }
success, game_state = deal
was_successful = success
state = game_state
elif action == 'hit':