falsy value handling on load config

This commit is contained in:
Concedo 2026-05-07 23:42:44 +08:00
parent 243b03586b
commit 7a2f653451

View file

@ -9593,7 +9593,7 @@ def reload_new_config(filename,defaultargs,overwrite_blank=False): #for changing
for key, value in defaultargs.items(): # Fill missing defaults directly into config
if key not in config:
config[key] = value
elif overwrite_blank and key in config and not config[key]:
elif overwrite_blank and key in config and config[key] in (None, ""):
config[key] = value
reload_from_new_args(config)
except Exception as e: