diff --git a/nodes.py b/nodes.py index 3a52753..61949e1 100644 --- a/nodes.py +++ b/nodes.py @@ -87,7 +87,12 @@ def import_mesh_ifs_vis_data(nodes, vis_data): for v in mesh_nodes: node = v[0] - mesh_ifs = set(node['nodeinfo']['network']['mesh_interfaces']) + + try: + mesh_ifs = set(node['nodeinfo']['network']['mesh_interfaces']) + except KeyError: + mesh_ifs = set() + node['nodeinfo']['network']['mesh_interfaces'] = list(mesh_ifs | v[1]) def import_vis_clientcount(nodes, vis_data):