forked from extern/easydiffusion
Silly error, don't delete a key if it doesn't exist
This commit is contained in:
parent
ade0912ba1
commit
721ab8a0c7
@ -183,7 +183,8 @@ def setConfig(config):
|
||||
config = commented_config
|
||||
yaml.indent(mapping=2, sequence=4, offset=2)
|
||||
|
||||
del config["config_on_startup"]
|
||||
if "config_on_startup" in config:
|
||||
del config["config_on_startup"]
|
||||
|
||||
try:
|
||||
f = open(config_yaml_path + ".tmp", "w", encoding="utf-8")
|
||||
|
Loading…
Reference in New Issue
Block a user