mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Minor just in case patch
This commit is contained in:
parent
bbc6dd9ac8
commit
09064a4a24
|
@ -49,7 +49,11 @@ def saveHistory(completion=None):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
readline.set_history_length(MAX_HISTORY_LENGTH)
|
readline.set_history_length(MAX_HISTORY_LENGTH)
|
||||||
readline.write_history_file(historyPath)
|
try:
|
||||||
|
readline.write_history_file(historyPath)
|
||||||
|
except IOError, msg:
|
||||||
|
warnMsg = "there was a problem writing the history file '%s' (%s)" % (historyPath, msg)
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
def loadHistory(completion=None):
|
def loadHistory(completion=None):
|
||||||
if not readlineAvailable():
|
if not readlineAvailable():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user