From 6c0b6a1239e5cb0e0b3644f7cc4b0fcaa6f23409 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 14 Feb 2020 21:59:43 +0000 Subject: [PATCH] `handlers.player_in_room` check `p.room` is not None --- houdini/handlers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/handlers/__init__.py b/houdini/handlers/__init__.py index c4f22c1..c07dd24 100644 --- a/houdini/handlers/__init__.py +++ b/houdini/handlers/__init__.py @@ -256,5 +256,5 @@ def player_attribute(**attrs): def player_in_room(*room_ids): def check_room_id(_, p): - return p.room.id in room_ids + return p.room is not None and p.room.id in room_ids return check(check_room_id)