Генерация лицензии Custom.mxtpro
This commit is contained in:
@@ -21,7 +21,10 @@ async def generate_license(
|
||||
- FileResponse: сгенерированный ZIP файл с именем Custom.mxtpro
|
||||
"""
|
||||
if not name.strip() or not version.strip():
|
||||
raise HTTPException(status_code=400, detail="NAME и VERSION обязательны.")
|
||||
raise HTTPException(
|
||||
status_code=400,
|
||||
detail="NAME и VERSION обязательны."
|
||||
)
|
||||
try:
|
||||
# Создаём временный файл на сервере
|
||||
filepath, temp_dir = generate_license_file(name, version)
|
||||
|
||||
Reference in New Issue
Block a user