Fix config parse error in case of two sections with same name in config

This commit is contained in:
Vasily Evseenko 2022-06-20 12:11:15 +03:00
parent af579d007e
commit 49210d6471

View File

@ -71,7 +71,7 @@ def parse_config(basedir, cfg_patterns, interpolate=True):
try:
fd.seek(0) # handle case when source config is fd
config = configparser.RawConfigParser()
config = configparser.RawConfigParser(strict=False)
try:
config.readfp(fd, filename=filename)