mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 12:30:13 +03:00
Merge pull request #2570 from Mytic2330/3.0-patch3
Fixed Connection closed when exporting a running project
This commit is contained in:
commit
d269a4c125
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user