Skip to content

Commit

Permalink
added error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
nctsiridis committed Dec 10, 2024
1 parent ec09bb8 commit e04b9c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spiderfoot/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ def __dbregex__(qry: str, data: str) -> bool:
if "correlation" in query:
self.dbh.execute(query)
self.conn.commit()
except sqlite3.Error:
raise IOError("Looks like you are running a pre-4.0 database. Unfortunately "
except sqlite3.Error as e:
raise IOError(f"{e} || Looks like you are running a pre-4.0 database. Unfortunately "
"SpiderFoot wasn't able to migrate you, so you'll need to delete "
"your SpiderFoot database in order to proceed.") from None

Expand Down

0 comments on commit e04b9c0

Please sign in to comment.