mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 11:55:27 +00:00
Catch a base class of sqlite3 exceptions, not only a specific one. Fixes #3420
This commit is contained in:
parent
042376289d
commit
db4aefddfa
1 changed files with 1 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ def verify_db():
|
|||
cursor = connection.cursor()
|
||||
try:
|
||||
cursor.execute("SELECT scans_id FROM scans WHERE date = 0")
|
||||
except sqlite3.OperationalError:
|
||||
except sqlite3.DatabaseError:
|
||||
u = UmitDB()
|
||||
u.create_db()
|
||||
verify_db()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue