Skip to content

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

sfp_robtex: Check errorState, abort completely once it occurs.

smicallef1840e73bfc3a
diff --git a/modules/sfp_robtex.py b/modules/sfp_robtex.py
index 6f99a267..8e550a10 100644
--- a/modules/sfp_robtex.py
+++ b/modules/sfp_robtex.py
@@ -102,6 +102,9 @@ class sfp_robtex(SpiderFootPlugin):
eventData = event.data
self.currentEventSrc = event
+ if self.errorState:
+ return
+
self.debug(f"Received event, {eventName}, from {srcModuleName}")
if self.cohostcount > self.opts['maxcohost']:
@@ -190,7 +193,7 @@ class sfp_robtex(SpiderFootPlugin):
if status and status == "ratelimited":
self.error("You are being rate-limited by robtex API.")
self.errorState = True
- continue
+ return
evt = SpiderFootEvent("RAW_RIR_DATA", json.dumps(data), self.__name__, event)
self.notifyListeners(evt)