mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
minor updates
This commit is contained in:
parent
3bb4ea2c7a
commit
bb6e36fb02
2 changed files with 18 additions and 10 deletions
|
|
@ -14,6 +14,7 @@ import rlcompleter
|
|||
from lib.core import readlineng as readline
|
||||
from lib.core.common import backend
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
from lib.core.data import paths
|
||||
from lib.core.data import queries
|
||||
|
||||
|
|
@ -25,7 +26,11 @@ def loadHistory():
|
|||
historyPath = os.path.expanduser(paths.SQLMAP_HISTORY)
|
||||
|
||||
if os.path.exists(historyPath):
|
||||
readline.read_history_file(historyPath)
|
||||
try:
|
||||
readline.read_history_file(historyPath)
|
||||
except IOError, msg:
|
||||
warnMsg = "there was a problem with loading of history file '%s' (%s)" % (historyPath, msg)
|
||||
logger.warn(warnMsg)
|
||||
|
||||
def queriesForAutoCompletion():
|
||||
autoComplQueries = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue