]> git.cworth.org Git - turbot/blobdiff - turbot/interaction.py
Remove a line of dead code
[turbot] / turbot / interaction.py
index 13b8ebf00fd6a31ceb60757b076ff86f30421dcd..23467d6874b5e83aa0470e889a99b6e449fdd230 100644 (file)
@@ -112,8 +112,6 @@ def edit_puzzle_command(turb, body):
 
     return edit_puzzle(turb, puzzle, trigger_id)
 
-    return lambda_ok
-
 def edit_puzzle_button(turb, payload):
     """Handler for the action of user pressing an edit_puzzle button"""
 
@@ -686,7 +684,7 @@ def puzzle(turb, body, args):
 
     # For a meta puzzle, also display the titles and solutions for all
     # puzzles in the same round.
-    if puzzle['type'] == 'meta':
+    if puzzle.get('type', 'plain') == 'meta':
         puzzles = hunt_puzzles_for_hunt_id(turb, puzzle['hunt_id'])
 
         # Drop this puzzle itself from the report