fix 500 error

pull/225/head
Aevann 2024-03-09 11:44:22 +02:00
parent 9aee5edaf3
commit ee77366280
3 changed files with 3 additions and 3 deletions

View File

@ -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.")

View File

@ -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()

View File

@ -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.")