Skip to content

Commit ebef06e

Browse files
Catch Jedi SystemError.
1 parent 92d3d08 commit ebef06e

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
@@ -151,6 +151,10 @@ def get_completions(self, document, complete_event):
151151
# In jedi.parser.__init__.py: 227, in remove_last_newline,
152152
# the assertion "newline.value.endswith('\n')" can fail.
153153
pass
154+
except SystemError:
155+
# File "jedi/api/helpers.py", line 140, in get_stack_at_position
156+
# raise SystemError("This really shouldn't happen. There's a bug in Jedi.")
157+
pass
154158
else:
155159
for c in completions:
156160
yield Completion(c.name_with_symbols, len(c.complete) - len(c.name_with_symbols),

0 commit comments

Comments
 (0)