Skip to content

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

Better error handling.

Steve7cd575c64e8b
diff --git a/modules/sfp_accounts.py b/modules/sfp_accounts.py
index ba80fbe7..ff27c607 100644
--- a/modules/sfp_accounts.py
+++ b/modules/sfp_accounts.py
@@ -43,12 +43,14 @@ class sfp_accounts(SpiderFootPlugin):
reportedUsers = list()
siteResults = dict()
sites = dict()
+ errorState = False
def setup(self, sfc, userOpts=dict()):
self.sf = sfc
self.results = dict()
self.commonNames = list()
self.reportedUsers = list()
+ self.errorState = False
self.__dataSource__ = "Social Media"
for opt in userOpts.keys():
@@ -63,6 +65,7 @@ class sfp_accounts(SpiderFootPlugin):
data = self.sf.fetchUrl(url, useragent="SpiderFoot")
if data['content'] is None:
self.sf.error("Unable to fetch " + url, False)
+ self.errorState = True
return None
else:
self.sf.cachePut("sfaccounts", data['content'])
@@ -186,6 +189,9 @@ class sfp_accounts(SpiderFootPlugin):
eventData = event.data
users = list()
+ if self.errorState:
+ return None
+
self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)
if eventData not in self.results.keys():