Fix possible crash of formulas checker

This commit is contained in:
Erwan MATHIEU 2024-06-17 13:59:56 +02:00
parent 332cf85264
commit 639fcca86a

View file

@ -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