From 0afce89c0baaa2e38bf8f51f80e144b7198be310 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sat, 18 Jul 2020 17:30:18 +0930 Subject: [PATCH] Fix exception when exporting debug data. Fixes #1684 --- gns3server/handlers/api/controller/server_handler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gns3server/handlers/api/controller/server_handler.py b/gns3server/handlers/api/controller/server_handler.py index a033ac88..510105d2 100644 --- a/gns3server/handlers/api/controller/server_handler.py +++ b/gns3server/handlers/api/controller/server_handler.py @@ -237,7 +237,8 @@ Processus: data += "\n\nProjects" for project in Controller.instance().projects.values(): data += "\n\nProject name: {}\nProject ID: {}\n".format(project.name, project.id) - for link in project.links.values(): - data += "Link {}: {}".format(link.id, link.debug_link_data) + if project.status != "closed": + for link in project.links.values(): + data += "Link {}: {}".format(link.id, link.debug_link_data) return data