Using ConfigParser's has_section()
method I can check if a section exists in a file, such as:
config.has_section(section_name)
What would be a command to check if a key exists as well? So it would be possible to verify that both a section and key exists before querying the value using:
value = config.get(section, key)
Thanks in advance!