Skip to content

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

Bug fix.

Steveb301c8fb63a2
diff --git a/modules/sfp_wigle.py b/modules/sfp_wigle.py
index be9ae9b8..981367c1 100644
--- a/modules/sfp_wigle.py
+++ b/modules/sfp_wigle.py
@@ -67,7 +67,7 @@ class sfp_wigle(SpiderFootPlugin):
res = self.sf.fetchUrl(url, timeout=30,
useragent="SpiderFoot", headers=hdrs)
- if res['code'] == "404":
+ if res['code'] == "404" or not res['content']:
return None
if "too many queries" in res['content']:
self.sf.error("Wigle.net query limit reached for the day.", False)
@@ -100,7 +100,7 @@ class sfp_wigle(SpiderFootPlugin):
res = self.sf.fetchUrl(url, timeout=30,
useragent="SpiderFoot", headers=hdrs)
- if res['code'] == "404":
+ if res['code'] == "404" or not res['content']:
return None
if "too many queries" in res['content']:
self.sf.error("Wigle.net query limit reached for the day.", False)