Minor update related to the Issue #1730

This commit is contained in:
Miroslav Stampar 2016-02-25 01:20:48 +01:00
parent 1e4b824827
commit c5ecdb5403

View File

@ -14,6 +14,7 @@ import time
from lib.core.common import getSafeExString from lib.core.common import getSafeExString
from lib.core.common import getUnicode from lib.core.common import getUnicode
from lib.core.common import serializeObject from lib.core.common import serializeObject
from lib.core.common import singleTimeWarnMessage
from lib.core.common import unserializeObject from lib.core.common import unserializeObject
from lib.core.data import logger from lib.core.data import logger
from lib.core.exception import SqlmapDataException from lib.core.exception import SqlmapDataException
@ -83,8 +84,8 @@ class HashDB(object):
if not any(_ in getSafeExString(ex) for _ in ("locked", "no such table")): if not any(_ in getSafeExString(ex) for _ in ("locked", "no such table")):
raise raise
else: else:
debugMsg = "problem occurred while accessing session file '%s' ('%s')" % (self.filepath, getSafeExString(ex)) warnMsg = "problem occurred while accessing session file '%s' ('%s')" % (self.filepath, getSafeExString(ex))
logger.debug(debugMsg) singleTimeWarnMessage(warnMsg)
except sqlite3.DatabaseError, ex: except sqlite3.DatabaseError, ex:
errMsg = "error occurred while accessing session file '%s' ('%s'). " % (self.filepath, getSafeExString(ex)) errMsg = "error occurred while accessing session file '%s' ('%s'). " % (self.filepath, getSafeExString(ex))
errMsg += "If the problem persists please rerun with `--flush-session`" errMsg += "If the problem persists please rerun with `--flush-session`"