Skip to content

Commit 32f7bd1

Browse files
committed
lesson_check.py allow for missing life_cycle
This will fix carpentries/styles#556
1 parent a841a56 commit 32f7bd1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/lesson_check.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ def check_config(reporter, source_dir):
188188
reporter.check(defaults in config.get('defaults', []),
189189
'configuration',
190190
'"root" not set to "." in configuration')
191-
return config['life_cycle']
191+
if 'life_cycle' in config:
192+
return config['life_cycle']
193+
else
194+
return None
192195

193196
def check_source_rmd(reporter, source_dir, parser):
194197
"""Check that Rmd episode files include `source: Rmd`"""

0 commit comments

Comments
 (0)