From 53284fc1a594cc16946e690f29aa81eab491d8b8 Mon Sep 17 00:00:00 2001 From: ievgenii vdovenko Date: Tue, 5 Aug 2025 10:05:30 +0200 Subject: [PATCH] fix: fix issue when there is no main section in the ini file --- rhodecode/config/settings_maker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhodecode/config/settings_maker.py b/rhodecode/config/settings_maker.py index a0143487..61713a51 100644 --- a/rhodecode/config/settings_maker.py +++ b/rhodecode/config/settings_maker.py @@ -49,7 +49,7 @@ def initialize_ini_config_default_values_if_not_present( updater = ConfigUpdater() updater.read(ini_path) - if not updater[section][option].value.strip(): + if option not in updater[section] or not updater[section][option].value.strip(): updater[section][option] = default_val dump_config()