def take_bet(self):
    while True:
        try:
            bet = int(input('Please put your bet: '))
            self.player.chips.make_bet(bet)
            break
        except TypeError:
            print('Invalid input. Please try again')
        except ValueError as exc:
            print(f'{exc} Please try again')
def take_bet(self):
    while True:
        try:
            bet = int(input('Please put your bet: '))
            self.player.chips.make_bet(bet)
            break
        except TypeError:
            print('Invalid input. Please try again')
        except ValueError as exc:
            print(f'{exc} Please try again')