mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Merge pull request #2570 from Mytic2330/3.0-patch3
Fixed Connection closed when exporting a running project
This commit is contained in:
1 file changed
+3
@@ -330,6 +330,9 @@ async def export_project(
|
||||
Required privilege: Project.Audit
|
||||
"""
|
||||
|
||||
if project.is_running():
|
||||
raise ControllerError("Project must be stopped in order to export it")
|
||||
|
||||
compression_query = compression.lower()
|
||||
if compression_query == "zip":
|
||||
compression = zipfile.ZIP_DEFLATED
|
||||
|
||||
Reference in new issue
Block a user