From: Carl Worth Date: Tue, 5 Jan 2021 02:05:37 +0000 (-0800) Subject: hunt_link_block: Remove inadvertent trailing comma X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;ds=sidebyside;h=0da1e2a36ac23128f1b730aa62b5ee749ec29fe8;p=turbot 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). --- 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