diff --git a/tools/check_chair.py b/tools/check_chair.py index e9f3b5c8..123aca47 100644 --- a/tools/check_chair.py +++ b/tools/check_chair.py @@ -59,11 +59,21 @@ A tool that checks a meeting chair matches the canonical format. meetings = meeting.load_meetings(args.yaml_dir) return_code = 0 for m in meetings: - ok, msg = check_chair(m.chair) - if not ok: - return_code = 1 - print(m.filefrom) - print(msg.rstrip()) + if m.chair is not None: + ok, msg = check_chair(m.chair) + if not ok: + return_code = 1 + print(m.filefrom) + print(msg.rstrip()) + for s in m.schedules: + if s.chair == m.chair: + # already checked + continue + ok, msg = check_chair(s.chair) + if not ok: + return_code = 1 + print(m.filefrom) + print(msg.rstrip()) return return_code