Skip to content

Commit

Permalink
Don't crash on var state changes if no variable shown
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Dec 16, 2017
1 parent 481ee21 commit 8d26bdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pudb/debugger.py
Expand Up @@ -770,6 +770,9 @@ def change_rhs_box(name, index, direction, w, size, key):
def change_var_state(w, size, key):
var, pos = self.var_list._w.get_focus()

if var is None:
return

iinfo = self.get_frame_var_info(read_only=False) \
.get_inspect_info(var.id_path, read_only=False)

Expand Down

0 comments on commit 8d26bdf

Please sign in to comment.