]> git.cworth.org Git - turbot/blobdiff - turbot/interaction.py
Fix to work with old puzzles that don't have a type attribute
[turbot] / turbot / interaction.py
index 13b8ebf00fd6a31ceb60757b076ff86f30421dcd..f50a83495fee11761a27bcd3f1051ced3b493d35 100644 (file)
@@ -686,7 +686,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