diff --git a/houdini/handlers/games/__init__.py b/houdini/handlers/games/__init__.py index cacc92b..a4140f9 100644 --- a/houdini/handlers/games/__init__.py +++ b/houdini/handlers/games/__init__.py @@ -47,7 +47,7 @@ async def handle_overdose_key(p, room: Room): @handlers.disconnected @handlers.player_attribute(joined_world=True) async def disconnect_overdose_key(p): - if p.room.game: + if p.room is not None and p.room.game: overdose_key = f'{p.id}.overdose' await p.server.redis.delete(overdose_key)