From c84ca010d198b8d64d41e3e3a26f422ab7a48f70 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 19 Oct 2020 15:11:56 -0700 Subject: [PATCH] Fix a broken line of code in turbot/actions.py Thanks to flake8 for pointing out that this code was functionally broken. --- turbot/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbot/commands.py b/turbot/commands.py index 1b7098c..68f470a 100644 --- a/turbot/commands.py +++ b/turbot/commands.py @@ -29,7 +29,7 @@ def rot(turb, body, args): json = {"text": result}, headers = {"Content-type": "application/json"}) else: - slack_client.chat_postMessage(channel=channel_id, text=result) + turb.slack_client.chat_postMessage(channel=channel_id, text=result) return { 'statusCode': 200, -- 2.43.0