]> git.cworth.org Git - turbot/blobdiff - turbot/puzzle.py
Fix to work with old puzzles that don't have a type attribute
[turbot] / turbot / puzzle.py
index e1e1bc2c6ed683fa8fe92962e4c476d59c433acf..08e86218738bbfba6cdeff598ded4acdfb758cec 100644 (file)
@@ -247,7 +247,7 @@ def puzzle_channel_name(puzzle):
         round = '-' + puzzle_id_from_name(puzzle['rounds'][0])
 
     meta = ''
-    if puzzle['type'] == 'meta':
+    if puzzle.get('type', 'plain') == 'meta':
         meta = '-m'
 
     # Note: We don't use puzzle['puzzle_id'] here because we're keeping