Also ignore failure to read readline history in the ask kitten
This commit is contained in:
parent
32f22e0ada
commit
66a52ac588
1 changed files with 3 additions and 1 deletions
|
|
@ -50,8 +50,10 @@ def complete(self, text, state):
|
|||
|
||||
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…
Reference in a new issue