Skip to content

Commit 0fa994e

Browse files
Handle IOError in Jedi completions() call. (Work-around for Jedi bug.)
1 parent fe1530a commit 0fa994e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ptpython/completer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ def get_completions(self, document, complete_event):
143143
# Jedi issue: "KeyError: u'a_lambda'."
144144
# https://github.com/jonathanslenders/ptpython/issues/89
145145
pass
146+
except IOError:
147+
# Jedi issue: "IOError: No such file or directory."
148+
# https://github.com/jonathanslenders/ptpython/issues/71
149+
pass
146150
else:
147151
for c in completions:
148152
yield Completion(c.name_with_symbols, len(c.complete) - len(c.name_with_symbols),

0 commit comments

Comments
 (0)