Skip to content

Commit cbf6d92

Browse files
committed
fix: monitor page not loading
1 parent 155fd08 commit cbf6d92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nebula/frontend/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,10 @@ def update_topology(scenario_name, nodes_list, nodes_config):
694694

695695
tm = TopologyManager(n_nodes=len(nodes_list), topology=matrix, scenario_name=scenario_name)
696696
tm.update_nodes(nodes_config)
697-
tm.draw_graph(path=os.path.join(settings.config_dir, scenario_name, "topology.png"))
697+
try:
698+
tm.draw_graph(path=os.path.join(settings.config_dir, scenario_name, "topology.png"))
699+
except FileNotFoundError:
700+
logging.exception("Topology.png not found in config dir")
698701

699702

700703
@app.post("/nebula/dashboard/{scenario_name}/node/update")

0 commit comments

Comments
 (0)