diff --git a/lib/utils/hashdb.py b/lib/utils/hashdb.py index 4e3f1a4e6..0d06c2e34 100644 --- a/lib/utils/hashdb.py +++ b/lib/utils/hashdb.py @@ -111,6 +111,10 @@ class HashDB(object): except sqlite3.IntegrityError: self.cursor.execute("UPDATE storage SET value=? WHERE id=?", (value, hash_,)) except sqlite3.OperationalError, ex: + if not os.path.exists(self.filepath): + debugMsg = "session file '%s' does not exist" % self.filepath + logger.debug(debugMsg) + break if retries == 0: warnMsg = "there has been a problem while writing to "