From 0da1e2a36ac23128f1b730aa62b5ee749ec29fe8 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 4 Jan 2021 18:05:37 -0800 Subject: [PATCH] hunt_link_block: Remove inadvertent trailing comma This was creating a tuple where not intended, so causing invalid blocks structure to be sent to Slack. This was the cause of the recent bug preventing the Turbot Home view from working (unless the user already belonged to every available hunt). --- turbot/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbot/events.py b/turbot/events.py index 200ab8f..ffe13d8 100644 --- a/turbot/events.py +++ b/turbot/events.py @@ -120,7 +120,7 @@ def hunt_link_block(turb, hunt): hunt_link = "*<{}|{}>*".format(channel_url(channel_id), name) - return section_block(text_block(hunt_link)), + return section_block(text_block(hunt_link)) def home(turb, user_id): """Returns a view to be published as the turbot home tab for user_id -- 2.43.0