From ed980613969cea4d7dc9fed96c941a2867a37da0 Mon Sep 17 00:00:00 2001 From: securechicken Date: Thu, 22 Jul 2021 16:26:25 +0200 Subject: [PATCH] FIX uninit to_delete var exception --- server/backend/watchers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/backend/watchers.py b/server/backend/watchers.py index 7299eb8..dbeae3a 100644 --- a/server/backend/watchers.py +++ b/server/backend/watchers.py @@ -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: