Skip to content

Commit 7363ae2

Browse files
Handle bug in Jedi.
1 parent 622fb5c commit 7363ae2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ptpython/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ def get_jedi_script_from_document(document, locals, globals):
6464
except KeyError:
6565
# Workaroud for a crash when the input is "u'", the start of a unicode string.
6666
return None
67+
except jedi.ParseError:
68+
# Workaround for: ParseError: incomplete input: type='ENDMARKER', value='', start_pos=(4, 0)
69+
return None
6770

6871

6972
_multiline_string_delims = re.compile('''[']{3}|["]{3}''')

0 commit comments

Comments
 (0)