Skip to content

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

Fix issue #400.

smicallef476442babe4a
diff --git a/sfwebui.py b/sfwebui.py
index 9f159278..6461c6ba 100644
--- a/sfwebui.py
+++ b/sfwebui.py
@@ -180,6 +180,8 @@ class SpiderFootWebUi:
fileobj = BytesIO()
parser = csv.writer(fileobj, dialect=dialect)
parser.writerow(["Updated", "Type", "Module", "Source", "F/P", "Data"])
+ if not data:
+ return None
for row in data:
if row[10] == "ROOT":
continue