From 66a52ac588c6fc240b91f4ee457723a33375046d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 22 Jun 2018 17:23:55 +0530 Subject: [PATCH] Also ignore failure to read readline history in the ask kitten --- kittens/ask/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kittens/ask/main.py b/kittens/ask/main.py index db039b200..b9bc3a94e 100644 --- a/kittens/ask/main.py +++ b/kittens/ask/main.py @@ -50,8 +50,10 @@ class HistoryCompleter: def __enter__(self): if self.history_path: - if os.path.exists(self.history_path): + try: readline.read_history_file(self.history_path) + except Exception: + pass readline.set_completer(self.complete) return self