From: Carl Worth Date: Mon, 19 Oct 2020 22:11:56 +0000 (-0700) Subject: Fix a broken line of code in turbot/actions.py X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=c84ca010d198b8d64d41e3e3a26f422ab7a48f70;p=turbot Fix a broken line of code in turbot/actions.py Thanks to flake8 for pointing out that this code was functionally broken. --- 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,