same as last commit

pull/134/head
Aevann 2023-02-24 11:01:57 +02:00
parent 587c115ea6
commit ba8564504e
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ def create_new_game(gambler, wager, currency):
over_minimum_bet = wager >= minimum_bet
if existing_game:
raise Exception("Gambler already has a game in progress.")
existing_game.active = False
g.db.add(existing_game)
if not over_minimum_bet:
raise Exception(f"Gambler must bet over {minimum_bet} {currency}.")