From the docs:
If none of the named files exist, the
ConfigParser
instance will contain an empty dataset.
If you want to raise an error in case any of the files is not found then you can try:
files = ['test1.ini', 'test2.ini']
dataset = config.read(files)
if len(dataset) != len(files):
raise ValueError("Failed to open/find all config files")