diff --git a/lib/utils/hashdb.py b/lib/utils/hashdb.py index 0d06c2e34..84dec33bf 100644 --- a/lib/utils/hashdb.py +++ b/lib/utils/hashdb.py @@ -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)