mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-05-02 15:24:30 +02:00
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
|
config = commented_config
|
||||||
yaml.indent(mapping=2, sequence=4, offset=2)
|
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:
|
try:
|
||||||
f = open(config_yaml_path + ".tmp", "w", encoding="utf-8")
|
f = open(config_yaml_path + ".tmp", "w", encoding="utf-8")
|
||||||
|
Loading…
Reference in New Issue
Block a user