Skip to content

Commit 78e503d

Browse files
committed
Minor patch related to the #1706
1 parent 9d18d48 commit 78e503d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/utils/hashdb.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,11 @@ def retrieve(self, key, unserialize=False):
8080
for row in self.cursor.execute("SELECT value FROM storage WHERE id=?", (hash_,)):
8181
retVal = row[0]
8282
except sqlite3.OperationalError, ex:
83-
if not "locked" in getSafeExString(ex):
83+
if not any(_ in getSafeExString(ex) for _ in ("locked", "no such table")):
8484
raise
85+
else:
86+
debugMsg = "problem occurred while accessing session file '%s' ('%s')" % (self.filepath, getSafeExString(ex))
87+
logger.debug(debugMsg)
8588
except sqlite3.DatabaseError, ex:
8689
errMsg = "error occurred while accessing session file '%s' ('%s'). " % (self.filepath, getSafeExString(ex))
8790
errMsg += "If the problem persists please rerun with `--flush-session`"

0 commit comments

Comments
 (0)