Skip to content

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

Bug fix.

smicallefe72d0c7092d7
diff --git a/sflib.py b/sflib.py
index f4c11575..268810e6 100644
--- a/sflib.py
+++ b/sflib.py
@@ -409,7 +409,7 @@ class SpiderFoot:
@classmethod
def dataPath(cls):
"""Returns the location of spiderfoot data and configuration files."""
- path = os.environ['SPIDERFOOT_DATA']
+ path = os.environ.get('SPIDERFOOT_DATA')
return path if path is not None else cls.myPath()
def hashstring(self, string):