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 = []