fix 500 error
parent
9aee5edaf3
commit
ee77366280
|
@ -85,7 +85,7 @@ def get_active_roulette_games():
|
|||
|
||||
|
||||
def charge_gambler(gambler, amount, currency):
|
||||
charged = gambler.charge_account(currency, amount, "Cost of roulette bet")[0]
|
||||
charged = gambler.charge_account(currency, amount, "Cost of roulette bet")
|
||||
|
||||
if not charged:
|
||||
raise Exception("Gambler cannot afford charge.")
|
||||
|
|
|
@ -25,7 +25,7 @@ payout_to_symbols = {
|
|||
def casino_slot_pull(gambler, wager_value, currency):
|
||||
over_min = wager_value >= minimum_bet
|
||||
under_max = wager_value <= maximum_bet
|
||||
charged = gambler.charge_account(currency, wager_value)[0]
|
||||
charged = gambler.charge_account(currency, wager_value)
|
||||
|
||||
if (over_min and under_max and charged):
|
||||
payout = determine_payout()
|
||||
|
|
|
@ -101,7 +101,7 @@ def get_active_twentyone_game_state(gambler):
|
|||
|
||||
|
||||
def charge_gambler(gambler, amount, currency):
|
||||
charged = gambler.charge_account(currency, amount)[0]
|
||||
charged = gambler.charge_account(currency, amount)
|
||||
|
||||
if not charged:
|
||||
raise Exception("Gambler cannot afford charge.")
|
||||
|
|
Loading…
Reference in New Issue