Do not silently fall back to default if a config file couldn't be found

This commit is contained in:
Stefan Hacker
2015-11-29 19:34:45 +01:00
parent 5680d806d2
commit 61c9f25b65

View File

@@ -45,7 +45,8 @@ class Config(object):
if filename:
cfg = ConfigParser.RawConfigParser()
cfg.optionxform = str
cfg.read(filename)
with open(filename) as f:
cfg.readfp(f)
sections.update(cfg.sections())
for section in sections: