diff --git a/printer-linter/src/printerlinter/linters/formulas.py b/printer-linter/src/printerlinter/linters/formulas.py index ad5b7ee943..aa31619678 100644 --- a/printer-linter/src/printerlinter/linters/formulas.py +++ b/printer-linter/src/printerlinter/linters/formulas.py @@ -146,12 +146,13 @@ class Formulas(Linter): available_sections = ["values"] for section in available_sections: - options = config.options(section) - for option in options: - values ={} - values["value"] = config.get(section, option) - overrides[option] = values - file_data["overrides"]= overrides# Process the value here + if config.has_section(section): + options = config.options(section) + for option in options: + values ={} + values["value"] = config.get(section, option) + overrides[option] = values + file_data["overrides"]= overrides# Process the value here return file_data