SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfdb: Check sfEvent.generated is float not str
Brendan Colesfbaea607f4fe
diff --git a/sfdb.py b/sfdb.pyindex f375c9e7..7b67de77 100644--- a/sfdb.py+++ b/sfdb.py@@ -1101,8 +1101,8 @@ class SpiderFootDb:if not sfEvent.generated:raise ValueError("sfEvent.generated is empty")- if not isinstance(sfEvent.generated, str):- raise TypeError("generated is %s; expected str()" % type(instanceId))+ if not isinstance(sfEvent.generated, float):+ raise TypeError("generated is %s; expected float()" % type(sfEvent.generated))if not isinstance(sfEvent.type, str):raise TypeError("sfEvent.type is %s; expected str()" % type(sfEvent.data))