Skip to content

Commit decb0f9

Browse files
Handle Jedi crash. prompt-toolkit#91
1 parent 0efdd87 commit decb0f9

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
@@ -65,6 +65,9 @@ def get_jedi_script_from_document(document, locals, globals):
6565
except KeyError:
6666
# Workaroud for a crash when the input is "u'", the start of a unicode string.
6767
return None
68+
except Exception:
69+
# Workaround for: https://github.com/jonathanslenders/ptpython/issues/91
70+
return None
6871

6972

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

0 commit comments

Comments
 (0)