From 055a78bade41ec0b80ec16b21181486f0aa1f6af Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 24 Mar 2021 12:06:10 +1030 Subject: [PATCH] Fix issue when trying to export temporary Dynamips files. --- gns3server/controller/export_project.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gns3server/controller/export_project.py b/gns3server/controller/export_project.py index 6d8e4210..44936ee9 100644 --- a/gns3server/controller/export_project.py +++ b/gns3server/controller/export_project.py @@ -130,6 +130,10 @@ def _is_exportable(path, include_snapshots=False): :returns: True if file should not be included in the final archive """ + # do not export file that does not exist anymore + if not os.path.exists(path): + return False + # do not export snapshots by default if include_snapshots is False and path.endswith("snapshots"): return False