Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a98d37

Browse files
committed
More general except
1 parent 212e92e commit 6a98d37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils/hashdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def flush(self, forced=False):
110110
self.cursor.execute("INSERT INTO storage VALUES (?, ?)", (hash_, value,))
111111
except sqlite3.IntegrityError:
112112
self.cursor.execute("UPDATE storage SET value=? WHERE id=?", (value, hash_,))
113-
except sqlite3.OperationalError, ex:
113+
except sqlite3.DatabaseError, ex:
114114
if not os.path.exists(self.filepath):
115115
debugMsg = "session file '%s' does not exist" % self.filepath
116116
logger.debug(debugMsg)

0 commit comments

Comments
 (0)