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();