From 8e2593c9e0380dcd754c5828e3f24a02482abaad Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Fri, 14 Oct 2022 10:57:00 -0700 Subject: [PATCH] gui: fixed error related to finalizing linked nodes due to recent throughput correction --- daemon/core/gui/coreclient.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/daemon/core/gui/coreclient.py b/daemon/core/gui/coreclient.py index da0657b5..6f098118 100644 --- a/daemon/core/gui/coreclient.py +++ b/daemon/core/gui/coreclient.py @@ -673,10 +673,12 @@ class CoreClient: self.links[edge.token] = edge src_node = edge.src.core_node dst_node = edge.dst.core_node - src_iface_id = edge.link.iface1.id - self.iface_to_edge[(src_node.id, src_iface_id)] = edge - dst_iface_id = edge.link.iface2.id - self.iface_to_edge[(dst_node.id, dst_iface_id)] = edge + if edge.link.iface1: + src_iface_id = edge.link.iface1.id + self.iface_to_edge[(src_node.id, src_iface_id)] = edge + if edge.link.iface2: + dst_iface_id = edge.link.iface2.id + self.iface_to_edge[(dst_node.id, dst_iface_id)] = edge def get_wlan_configs(self) -> List[Tuple[int, Dict[str, str]]]: configs = []