From 0bab5b46f6a9d98b2e7f1c8b14eda73569d8e4b9 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 11 Jan 2021 09:58:12 -0800 Subject: [PATCH] Fix call to find_hunt_for_hunt_id It takes two parameters, not one, (was missing "turb" argument). This should fix the edit_hunt button (the pencil) which was erroring out while this bug was present. --- turbot/interaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbot/interaction.py b/turbot/interaction.py index e020389..69d4f25 100644 --- a/turbot/interaction.py +++ b/turbot/interaction.py @@ -385,7 +385,7 @@ def edit_hunt_button(turb, payload): hunt_id = payload['actions'][0]['action_id'] trigger_id = payload['trigger_id'] - hunt = find_hunt_for_hunt_id(hunt_id) + hunt = find_hunt_for_hunt_id(turb, hunt_id) if not hunt: return bot_reply("Error: Hunt not found.") -- 2.43.0