Merge pull request #2570 from Mytic2330/3.0-patch3

Fixed Connection closed when exporting a running project
This commit is contained in:
Jeremy Grossmann 2025-11-04 04:07:01 +01:00 committed by GitHub
commit d269a4c125
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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