Also ignore failure to read readline history in the ask kitten

This commit is contained in:
Kovid Goyal 2018-06-22 17:23:55 +05:30
parent 32f22e0ada
commit 66a52ac588
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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