Recap & Practice
Check your understanding
1/9
Why is for line in f: generally preferred over f.readlines() for processing a large file line by line?
Exercise · Graded
Implement load_agent_configs_from_csv: read the CSV with csv.DictReader, validate each row individually (skipping and logging failures rather than aborting the whole function), handle a missing file with chaining, and raise a final ConfigError if nothing valid was found.