Skip to content

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

modules: remove unused errorState (#1199)

bcolesfa02bc8e7359
diff --git a/modules/sfp_creditcard.py b/modules/sfp_creditcard.py
index 362c494b..55b1050d 100644
--- a/modules/sfp_creditcard.py
+++ b/modules/sfp_creditcard.py
@@ -35,10 +35,6 @@ class sfp_creditcard(SpiderFootPlugin):
# Tracking results can be helpful to avoid reporting/processing duplicates
results = None
- # Tracking the error state of the module can be useful to detect when a third party
- # has failed and you don't wish to process any more events.
- errorState = False
-
def setup(self, sfc, userOpts=dict()):
self.sf = sfc
self.results = self.tempStorage()
@@ -66,11 +62,6 @@ class sfp_creditcard(SpiderFootPlugin):
srcModuleName = event.module
eventData = event.data
- # Once we are in this state, return immediately.
- if self.errorState:
- return None
-
- # event was received.
self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")
# Extract Credit Card numbers
diff --git a/modules/sfp_iban.py b/modules/sfp_iban.py
index 8b8362c2..76df3728 100644
--- a/modules/sfp_iban.py
+++ b/modules/sfp_iban.py
@@ -35,10 +35,6 @@ class sfp_iban(SpiderFootPlugin):
# Tracking results can be helpful to avoid reporting/processing duplicates
results = None
- # Tracking the error state of the module can be useful to detect when a third party
- # has failed and you don't wish to process any more events.
- errorState = False
-
def setup(self, sfc, userOpts=dict()):
self.sf = sfc
self.results = self.tempStorage()
@@ -67,11 +63,6 @@ class sfp_iban(SpiderFootPlugin):
srcModuleName = event.module
eventData = event.data
- # Once we are in this state, return immediately.
- if self.errorState:
- return None
-
- # event was received.
self.sf.debug(f"Received event, {eventName}, from {srcModuleName}")
# Extract IBAN Card numbers