histfile = histfiles[-1]
histfile = os.path.expandvars(histfile)
histfile = os.path.expanduser(histfile)
- readline.write_history_file(histfile)
+ try:
+ readline.write_history_file(histfile)
+ except IOError:
+ pass
import atexit
atexit.register(savehist)