Minor just in case patch

This commit is contained in:
Miroslav Stampar 2014-09-17 18:25:24 +02:00
parent bbc6dd9ac8
commit 09064a4a24

View File

@ -49,7 +49,11 @@ def saveHistory(completion=None):
pass
readline.set_history_length(MAX_HISTORY_LENGTH)
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):
if not readlineAvailable():