This commit is contained in:
2023-11-05 20:58:21 +02:00
parent c9b0eab17b
commit 7053d8e5a4

View File

@ -46,8 +46,11 @@ def update_state():
with open(CFG_PATH, "r") as file:
config = yaml.safe_load(file)
except:
with open(CFG_PATH, "w"):
pass
try:
with open(CFG_PATH, "w"):
pass
except Exception as exp:
log.error(f"Couldn't create config. {exp}")
if config:
HOSTNAME = config.get('ui_hostname', 'my-own-ssl-ENABLED-domain.com')