mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-08-21 14:37:16 +00:00
fix
This commit is contained in:
committed by
GitHub
parent
559c3c1990
commit
f53f305a6f
16
main.py
16
main.py
@@ -170,15 +170,15 @@ def add_server():
|
|||||||
"cert": request.form["cert"],
|
"cert": request.form["cert"],
|
||||||
}
|
}
|
||||||
config["servers"] = servers
|
config["servers"] = servers
|
||||||
try:
|
try:
|
||||||
with open(CFG_PATH, "w") as file:
|
with open(CFG_PATH, "w") as file:
|
||||||
yaml.safe_dump(config, file)
|
yaml.safe_dump(config, file)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return redirect(
|
return redirect(
|
||||||
url_for(
|
url_for(
|
||||||
"index", nt=f"Couldn't write Outfleet config: {e}", nl="error"
|
"index", nt=f"Couldn't write Outfleet config: {e}", nl="error"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
log.info("Added server: %s", new_server.data["name"])
|
log.info("Added server: %s", new_server.data["name"])
|
||||||
update_state()
|
update_state()
|
||||||
|
Reference in New Issue
Block a user