Catch IndexError on empty Variables state

This commit is contained in:
Michael van der Kamp 2024-06-02 19:09:26 -07:00 committed by Andreas Klöckner
parent e340f1d087
commit b0ea4cd391

View File

@ -994,9 +994,12 @@ class DebuggerUI(FrameVarInfoKeeper):
return None
def change_var_state(w, size, key):
pos = self.var_list._w.focus_position
var = self.var_list._w.focus
try:
pos = self.var_list._w.focus_position
except IndexError:
return
var = self.var_list._w.focus
if var is None:
return