mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Minor update related to the Issue #1730
This commit is contained in:
parent
1e4b824827
commit
c5ecdb5403
|
@ -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`"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user