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.
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), thenlesson_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.