Skip to content

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

Bug fix for DB initialisation.

root1d4bd3849700
diff --git a/sfdb.py b/sfdb.py
index 2d2ea0f3..7563ca6c 100644
--- a/sfdb.py
+++ b/sfdb.py
@@ -257,12 +257,15 @@ class SpiderFootDb:
return
if init:
+ print "Attempting to verify database and update if necessary..."
for qry in self.createTypeQueries:
try:
self.dbh.execute(qry)
self.conn.commit()
except BaseException as e:
continue
+ self.conn.commit()
+ self.conn.close()
#
# Back-end database operations