Ensure we dump a .gns3 before exporting it

Fix #915
This commit is contained in:
Julien Duponchelle committed 2017-02-27 11:10:08 +01:00
1 parent 34d0736946
commit 53dd1bd6e1
2 files changed
+6 -1

No files matched your search

+3
View File
@@ -47,6 +47,9 @@ def export_project(project, temporary_dir, include_images=False, keep_compute_id
if project.is_running():
raise aiohttp.web.HTTPConflict(text="Running topology could not be exported")
# Make sure we save the project
project.dump()
z = zipstream.ZipFile(allowZip64=True)
if not os.path.exists(project._path):