Merge pull request #75 from securechicken/watcherfix1
FIX watcher crash when remote file does not have a "to_delete" key
This commit is contained in:
commit
48539a13df
@ -37,6 +37,7 @@ def watch_iocs():
|
|||||||
if w["status"] == False:
|
if w["status"] == False:
|
||||||
iocs = IOCs()
|
iocs = IOCs()
|
||||||
iocs_list = []
|
iocs_list = []
|
||||||
|
to_delete = []
|
||||||
try:
|
try:
|
||||||
res = requests.get(w["url"], verify=False)
|
res = requests.get(w["url"], verify=False)
|
||||||
if res.status_code == 200:
|
if res.status_code == 200:
|
||||||
@ -85,6 +86,7 @@ def watch_whitelists():
|
|||||||
if w["status"] == False:
|
if w["status"] == False:
|
||||||
whitelist = WhiteList()
|
whitelist = WhiteList()
|
||||||
elements = []
|
elements = []
|
||||||
|
to_delete = []
|
||||||
try:
|
try:
|
||||||
res = requests.get(w["url"], verify=False)
|
res = requests.get(w["url"], verify=False)
|
||||||
if res.status_code == 200:
|
if res.status_code == 200:
|
||||||
|
Loading…
Reference in New Issue
Block a user