FIX uninit to_delete var exception

This commit is contained in:
securechicken 2021-07-22 16:26:25 +02:00
parent 4b9413ba37
commit ed98061396

View File

@ -37,6 +37,7 @@ def watch_iocs():
if w["status"] == False:
iocs = IOCs()
iocs_list = []
to_delete = []
try:
res = requests.get(w["url"], verify=False)
if res.status_code == 200:
@ -85,6 +86,7 @@ def watch_whitelists():
if w["status"] == False:
whitelist = WhiteList()
elements = []
to_delete = []
try:
res = requests.get(w["url"], verify=False)
if res.status_code == 200: