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