From 80c0f698b64a7b4bfafae65d81345b07227a76bf Mon Sep 17 00:00:00 2001 From: Kelly Date: Mon, 6 Oct 2025 13:51:56 -0700 Subject: [PATCH] Update modules/games/tictactoe.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- modules/games/tictactoe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/games/tictactoe.py b/modules/games/tictactoe.py index 9eddc44..a761862 100644 --- a/modules/games/tictactoe.py +++ b/modules/games/tictactoe.py @@ -161,7 +161,7 @@ class TicTacToe: elif input_msg.lower().startswith('b'): return self.show_board(id) + "Your turn! Pick 1-9:" position = int(numbers[0]) - except: + except (ValueError, IndexError): return "Enter 1-9, or (e)nd (n)ew game, send (b)oard to see board🧩" # Make player move