From 37eaa751c97c0b9be76283ba23539fef75811e47 Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Tue, 24 Jan 2023 19:28:41 +0000 Subject: [PATCH] fix password check for empty password --- backend/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/server.py b/backend/server.py index a88649f..a502c20 100644 --- a/backend/server.py +++ b/backend/server.py @@ -275,7 +275,7 @@ def toggle_replace_with_bot(sid): def join_room(sid, room): room_name = room['name'] i = [g.name for g in games].index(room_name) - if games[i].password != '' and games[i].password != room['password'].upper(): + if games[i].password != '' and games[i].password != room.get('password', '').upper(): return if not games[i].started: print(f'{sid} joined a room named {room_name}')