Skip to content

Commit c5ecdb5

Browse files
committed
Minor update related to the Issue #1730
1 parent 1e4b824 commit c5ecdb5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/utils/hashdb.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from lib.core.common import getSafeExString
1515
from lib.core.common import getUnicode
1616
from lib.core.common import serializeObject
17+
from lib.core.common import singleTimeWarnMessage
1718
from lib.core.common import unserializeObject
1819
from lib.core.data import logger
1920
from lib.core.exception import SqlmapDataException
@@ -83,8 +84,8 @@ def retrieve(self, key, unserialize=False):
8384
if not any(_ in getSafeExString(ex) for _ in ("locked", "no such table")):
8485
raise
8586
else:
86-
debugMsg = "problem occurred while accessing session file '%s' ('%s')" % (self.filepath, getSafeExString(ex))
87-
logger.debug(debugMsg)
87+
warnMsg = "problem occurred while accessing session file '%s' ('%s')" % (self.filepath, getSafeExString(ex))
88+
singleTimeWarnMessage(warnMsg)
8889
except sqlite3.DatabaseError, ex:
8990
errMsg = "error occurred while accessing session file '%s' ('%s'). " % (self.filepath, getSafeExString(ex))
9091
errMsg += "If the problem persists please rerun with `--flush-session`"

0 commit comments

Comments
 (0)