forked from MarseyWorld/MarseyWorld
fix 500 error
parent
c15e0f6fad
commit
ae0dd18192
|
@ -89,7 +89,9 @@ def player_took_blackjack_action(v):
|
||||||
elif existing_game:
|
elif existing_game:
|
||||||
return { "error": "Cannot start a new game while an existing game persists." }
|
return { "error": "Cannot start a new game while an existing game persists." }
|
||||||
else:
|
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
|
was_successful = success
|
||||||
state = game_state
|
state = game_state
|
||||||
elif action == 'hit':
|
elif action == 'hit':
|
||||||
|
|
Loading…
Reference in New Issue