From c381dad4cf05f49da812d10841d102a732d8273d Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 15 Nov 2021 15:27:32 -0800 Subject: [PATCH] Add some debugging of the turbot home app I'm getting some "channel_not_found" errors that I don't understand, because I don't think I have any active hunts currently. --- turbot/events.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/turbot/events.py b/turbot/events.py index eb5bcc4..4186e18 100644 --- a/turbot/events.py +++ b/turbot/events.py @@ -43,8 +43,11 @@ def home(turb, user_id): my_hunt_blocks = [] available_hunt_blocks = [] for hunt in hunts: + print("Generating turbot home view for hunt '" + hunt['hunt_id'] + "'") if not hunt['active']: + print("Never mind, that hunt is not active.") continue + print("Hunt '" + hunt['hunt_id'] + "' is active, moving forward.") if user_id in slack_channel_members(turb.slack_client, hunt['channel_id']): my_hunt_blocks.append(hunt_link_block(turb, hunt)) -- 2.43.0