##// END OF EJS Templates
Protect against failure to show local data....
Matthias Bussonnier -
r26710:053e48a3
parent child
Show More
@@ -634,8 +634,16 class VerboseTB(TBTools):
634 lvals = ''
634 lvals = ''
635 lvals_list = []
635 lvals_list = []
636 if self.include_vars:
636 if self.include_vars:
637 for var in frame_info.variables_in_executing_piece:
637 try:
638 lvals_list.append(tpl_name_val % (var.name, repr(var.value)))
638 # we likely want to fix stackdata at some point, but
639 # still need a workaround.
640 fibp = frame_info.variables_in_executing_piece
641 for var in fibp:
642 lvals_list.append(tpl_name_val % (var.name, repr(var.value)))
643 except Exception:
644 lvals_list.append(
645 "Exception trying to inspect frame. No more locals available."
646 )
639 if lvals_list:
647 if lvals_list:
640 lvals = '%s%s' % (indent, em_normal.join(lvals_list))
648 lvals = '%s%s' % (indent, em_normal.join(lvals_list))
641
649
General Comments 0
You need to be logged in to leave comments. Login now