close
Q:
exception configparser.DuplicateOptionError
Exception raised by strict parsers if a single option appears twice during reading from a single file, string or dictionary. This catches misspellings and case sensitivity-related errors, e.g. a dictionary may have two keys representing the same case-insensitive configuration key.
SOL:
config = configparser.RawConfigParser(allow_no_value=True,strict=False)
https://docs.python.org/3.2/library/configparser.html
全站熱搜