From 68649ba2140be8e480081e24b23825e8ba68928b Mon Sep 17 00:00:00 2001 From: icysanta Date: Mon, 1 Dec 2025 11:51:00 +0000 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BB=D0=B8=D1=86=D0=B5=D0=BD=D0=B7=D0=B8=D0=B8?= =?UTF-8?q?=20Custom.mxtpro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/routes/license_routes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/routes/license_routes.py b/backend/routes/license_routes.py index f48e20c..c5bc8ad 100644 --- a/backend/routes/license_routes.py +++ b/backend/routes/license_routes.py @@ -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)