Skip to content

Commit

Permalink
fix: avoid KeyError when stop
Browse files Browse the repository at this point in the history
  • Loading branch information
401U committed Jul 23, 2023
1 parent d130040 commit df393bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions carpet_bot_manager/BotManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def on_bot_left(self, player: str):
if player == "":
for bot in self.bots.values():
bot.online = False
return
player = player.lower()
bot = self.bots[player]
bot.online = False
Expand Down

0 comments on commit df393bb

Please sign in to comment.