Do not silently fall back to default if a config file couldn't be found
This commit is contained in:
@@ -45,7 +45,8 @@ class Config(object):
|
|||||||
if filename:
|
if filename:
|
||||||
cfg = ConfigParser.RawConfigParser()
|
cfg = ConfigParser.RawConfigParser()
|
||||||
cfg.optionxform = str
|
cfg.optionxform = str
|
||||||
cfg.read(filename)
|
with open(filename) as f:
|
||||||
|
cfg.readfp(f)
|
||||||
sections.update(cfg.sections())
|
sections.update(cfg.sections())
|
||||||
|
|
||||||
for section in sections:
|
for section in sections:
|
||||||
|
|||||||
Reference in New Issue
Block a user