Skip to content

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

sfp_torexits: Replace self.sf.error with self.debug (#1474)

bcoles643e2da1e34f
diff --git a/modules/sfp_torexits.py b/modules/sfp_torexits.py
index 7c6e9149..0c0a559c 100644
--- a/modules/sfp_torexits.py
+++ b/modules/sfp_torexits.py
@@ -147,7 +147,7 @@ class sfp_torexits(SpiderFootPlugin):
try:
results = json.loads(data)
except Exception as e:
- self.sf.error(f"Error processing JSON response: {e}")
+ self.error(f"Error processing JSON response: {e}")
return None
relays = results.get('relays')
@@ -216,7 +216,7 @@ class sfp_torexits(SpiderFootPlugin):
targetType = 'netblock'
evtType = 'MALICIOUS_SUBNET'
else:
- self.sf.debug(f"Unexpected event type {eventName}, skipping")
+ self.debug(f"Unexpected event type {eventName}, skipping")
return
self.debug(f"Checking if {eventData} ({eventName}) is a TOR exit node")