]> git.cworth.org Git - turbot/commitdiff
Fix a broken line of code in turbot/actions.py
authorCarl Worth <cworth@cworth.org>
Mon, 19 Oct 2020 22:11:56 +0000 (15:11 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 19 Oct 2020 23:19:30 +0000 (16:19 -0700)
Thanks to flake8 for pointing out that this code was functionally broken.

turbot/commands.py

index 1b7098ca4937da7f1959aaf647628dc2401c9f9e..68f470a226b3f5cc7f9ba3ed82c0197f613f3595 100644 (file)
@@ -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,