mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-07-07 01:24:06 +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"],
|
||||
}
|
||||
config["servers"] = servers
|
||||
try:
|
||||
with open(CFG_PATH, "w") as file:
|
||||
try:
|
||||
with open(CFG_PATH, "w") as file:
|
||||
yaml.safe_dump(config, file)
|
||||
except Exception as e:
|
||||
return redirect(
|
||||
url_for(
|
||||
"index", nt=f"Couldn't write Outfleet config: {e}", nl="error"
|
||||
)
|
||||
)
|
||||
except Exception as e:
|
||||
return redirect(
|
||||
url_for(
|
||||
"index", nt=f"Couldn't write Outfleet config: {e}", nl="error"
|
||||
)
|
||||
)
|
||||
|
||||
log.info("Added server: %s", new_server.data["name"])
|
||||
update_state()
|
||||
|
Reference in New Issue
Block a user