Skip to content

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

More error handling.

Steve Micallefc1def6417b54
diff --git a/modules/sfp_commoncrawl.py b/modules/sfp_commoncrawl.py
index 11596111..ca730545 100644
--- a/modules/sfp_commoncrawl.py
+++ b/modules/sfp_commoncrawl.py
@@ -57,6 +57,11 @@ class sfp_commoncrawl(SpiderFootPlugin):
self.errorState = True
return None
+ if not res['content']:
+ self.sf.error("CommonCrawl search doesn't seem to be available.", False)
+ self.errorState = True
+ return None
+
ret.append(res['content'])
return ret