carpentries / styles

Styles for The Carpentries lessons. No README to avoid merge conflicts with lessons. Demo 👇
https://carpentries.github.io/lesson-example
Other
84 stars 94 forks source link

Error in lesson_check.py if lesson does not have life_cycle #556

Closed zkamvar closed 3 years ago

zkamvar commented 3 years ago

Source: https://github.com/swcarpentry/r-novice-gapminder/pull/694#issuecomment-795848265

If a lesson does not have life_cycle (e.g. all of the official lessons), then lesson_check.py fails. This is a new bug introduced in https://github.com/carpentries/styles/pull/536. The solution is to check if the key "life_cycle" exists and return None if it doesn't.