Catch IndexError on empty Variables state
This commit is contained in:
parent
e340f1d087
commit
b0ea4cd391
@ -994,9 +994,12 @@ class DebuggerUI(FrameVarInfoKeeper):
|
||||
return None
|
||||
|
||||
def change_var_state(w, size, key):
|
||||
try:
|
||||
pos = self.var_list._w.focus_position
|
||||
var = self.var_list._w.focus
|
||||
except IndexError:
|
||||
return
|
||||
|
||||
var = self.var_list._w.focus
|
||||
if var is None:
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user