Also ignore failure to read readline history in the ask kitten
This commit is contained in:
parent
32f22e0ada
commit
66a52ac588
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user