From 9a3c9d6775db86ffcd76a1427fb42930c0f821d4 Mon Sep 17 00:00:00 2001 From: "gioacchino.vino" <gioacchino.vino@infn.it> Date: Wed, 7 Feb 2024 12:34:56 +0100 Subject: [PATCH] Managed Failed scan tasks --- files/scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/scan.py b/files/scan.py index dd03c66..2d636e8 100644 --- a/files/scan.py +++ b/files/scan.py @@ -100,7 +100,7 @@ for host,ports in endpoints.items(): filename = f"{report_filename}.txt") reports[host] = task.get_report_info(issues_to_drop) else: - reports[host] = f"ERROR Task: {task.id}" + reports[host] = {'global': {"severity": -1, "threat": f"Scan Error. task.id: {task.id}"} } del task del target -- GitLab