From 9c8229517baf454a6c30366f9c30553096a273c6 Mon Sep 17 00:00:00 2001 From: WildSoft Date: Thu, 12 Nov 2026 20:06:47 +0300 Subject: [PATCH] Update public source --- reports/vendors.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/reports/vendors.py b/reports/vendors.py index 8629146..dd5e7b7 100644 --- a/reports/vendors.py +++ b/reports/vendors.py @@ -746,9 +746,15 @@ def recalculate_block(job=None): "/reports/vendors/recalculate/status/" + jobId ); - if (!response.ok) {{ - throw new Error("Ошибка получения статуса"); - }} + if (!response.ok) { + + statusElement.textContent = + "Не удалось получить статус задачи (HTTP " + + response.status + + ")"; + + return; + } const data = await response.json();