mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-19 01:22:20 +03:00
More general except
This commit is contained in:
parent
212e92ea01
commit
6a98d375b1
|
@ -110,7 +110,7 @@ class HashDB(object):
|
|||
self.cursor.execute("INSERT INTO storage VALUES (?, ?)", (hash_, value,))
|
||||
except sqlite3.IntegrityError:
|
||||
self.cursor.execute("UPDATE storage SET value=? WHERE id=?", (value, hash_,))
|
||||
except sqlite3.OperationalError, ex:
|
||||
except sqlite3.DatabaseError, ex:
|
||||
if not os.path.exists(self.filepath):
|
||||
debugMsg = "session file '%s' does not exist" % self.filepath
|
||||
logger.debug(debugMsg)
|
||||
|
|
Loading…
Reference in New Issue
Block a user