Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
commit b9fc8e6e959b5988b04f0efde8f6be6cf9b30fff Author: Peter Hatina phatina@redhat.com Date: Tue Apr 2 15:25:32 2013 +0200
fix handle IO exception when saving history
cli-tools/lmishell | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/cli-tools/lmishell b/cli-tools/lmishell index f50731b..882c30e 100755 --- a/cli-tools/lmishell +++ b/cli-tools/lmishell @@ -297,7 +297,10 @@ class LmiInteractiveShell(code.InteractiveConsole): return elif self._history_length > 0: readline.set_history_length(self._history_length) - readline.write_history_file(self._history_file) + try: + readline.write_history_file(self._history_file) + except IOError, e: + pass
def clear_history(self): readline.clear_history()
cura-tools-devel@lists.fedorahosted.org