Permalink
Browse files

Dont fail on history file failures

  • Loading branch information...
1 parent 22ce097 commit ece4f7f1948794a465d947aa991d9bca3687782b @dcramer committed Jan 14, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/pythonrc.py
View
@@ -15,7 +15,10 @@ def save_history(history=history):
readline.write_history_file(history)
if os.path.exists(history):
- readline.read_history_file(history)
+ try:
+ readline.read_history_file(history)
+ except IOError:
+ pass
atexit.register(save_history)
del os, atexit, readline, rlcompleter, save_history, history

0 comments on commit ece4f7f

Please sign in to comment.