diff --git a/magisch_corvee_script.py b/magisch_corvee_script.py index 1b23973..3b82a71 100755 --- a/magisch_corvee_script.py +++ b/magisch_corvee_script.py @@ -102,7 +102,8 @@ def set_capabilities(tasks: dict[str, TaskConfig], people: dict[str, Person]): people[p.lower()].can.add(task) if conf.hardcode is not None: for day, pers in enumerate(conf.hardcode): - people[pers.lower()].does.add((day, task)) + if pers: + people[pers.lower()].does.add((day, task)) def write_tasks(people, tasks, file=sys.stdout): for name, p in people.items():