mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-08-21 14:37:16 +00:00
Fix help
This commit is contained in:
7
main.py
7
main.py
@@ -46,8 +46,11 @@ def update_state():
|
|||||||
with open(CFG_PATH, "r") as file:
|
with open(CFG_PATH, "r") as file:
|
||||||
config = yaml.safe_load(file)
|
config = yaml.safe_load(file)
|
||||||
except:
|
except:
|
||||||
with open(CFG_PATH, "w"):
|
try:
|
||||||
pass
|
with open(CFG_PATH, "w"):
|
||||||
|
pass
|
||||||
|
except Exception as exp:
|
||||||
|
log.error(f"Couldn't create config. {exp}")
|
||||||
|
|
||||||
if config:
|
if config:
|
||||||
HOSTNAME = config.get('ui_hostname', 'my-own-ssl-ENABLED-domain.com')
|
HOSTNAME = config.get('ui_hostname', 'my-own-ssl-ENABLED-domain.com')
|
||||||
|
Reference in New Issue
Block a user