]> git.cworth.org Git - turbot/blobdiff - turbot_lambda/turbot_lambda.py
Fix a typo in a comment
[turbot] / turbot_lambda / turbot_lambda.py
index b2acf41b520f1c3da723d74e7cb038483d5776a4..7622d82e46168cde94a539d42850d220d3866616 100644 (file)
@@ -66,6 +66,7 @@ db = boto3.resource('dynamodb')
 turb = SimpleNamespace()
 turb.slack_client = slack_client
 turb.db = db
+turb.table = db.Table("turbot")
 turb.sheets = sheets
 turb.permissions = permissions
 
@@ -198,7 +199,10 @@ def turbot_block_action(turb, payload):
     action = actions[0]
 
     atype = action['type']
-    avalue = action['value']
+    if 'value' in action:
+        avalue = action['value']
+    else:
+        avalue = '*'
 
     if (
             atype in turbot.interaction.actions