Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

sflib: revert opts['__modules__'] validation

bcoles5e46e639047c
diff --git a/sflib.py b/sflib.py
index 274bd246..b3133d29 100644
--- a/sflib.py
+++ b/sflib.py
@@ -668,7 +668,8 @@ class SpiderFoot:
if type(opts[opt]) is list:
storeopts[opt] = ','.join(opts[opt])
- if opts['__modules__'] is None:
+ # todo: ensure the __modules__ key value is in the expected format
+ if '__modules__' not in opts:
return storeopts
for mod in opts['__modules__']:
@@ -2773,4 +2774,3 @@ class SpiderFootEvent(object):
def setSourceEventHash(self, srcHash):
self.sourceEventHash = srcHash
-