Fix issue where empty inputs cause crash
This commit is contained in:
parent
6f04d50ea0
commit
23ae01e442
@ -62,7 +62,7 @@ class HistoryConsole(code.InteractiveConsole):
|
||||
If the line begins with ">", we just strip it and evaluate as valid
|
||||
Python."""
|
||||
raw_input_line = input(prompt)
|
||||
if raw_input_line[0] == '>':
|
||||
if len(raw_input_line) > 0 and raw_input_line[0] == '>':
|
||||
return raw_input_line[1:]
|
||||
else:
|
||||
cmds = parse_cmds(raw_input_line)
|
||||
|
||||
Reference in New Issue
Block a user