tests: fixed config maker

This commit is contained in:
ievgenii vdovenko 2025-08-01 14:08:15 +02:00
parent 91a731620e
commit 8f63e50f3a

View file

@ -35,6 +35,10 @@ def initialize_ini_config_default_values_if_not_present(ini_path: str):
with open(ini_path, "w") as configfile:
updater.write(configfile)
if not ini_path or not os.path.exists(ini_path):
log.warning("Config file %s not found.", ini_path)
return
updater = ConfigUpdater()
updater.read(ini_path)