Skip to content
Snippets Groups Projects
Commit 1221eb30 authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Improved managing of component removal

parent 9b1bc7ae
No related branches found
No related tags found
1 merge request!128Improved managing of component removal
......@@ -102,9 +102,20 @@ for host,ports in endpoints.items():
else:
reports[host] = {'global': {"severity": -1, "threat": f"Scan Error. task.id: {task.id}"} }
del task
del target
del port_list
try:
del task
except Exception:
pass
try:
del target
except Exception:
pass
try:
del port_list
except Exception:
pass
reports = process_global_reports_info(reports)
logging.info(pretty_json(reports))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment