Show More
@@ -671,8 +671,16 b' class VerboseTB(TBTools):' | |||||
671 | lvals = '' |
|
671 | lvals = '' | |
672 | lvals_list = [] |
|
672 | lvals_list = [] | |
673 | if self.include_vars: |
|
673 | if self.include_vars: | |
674 | for var in frame_info.variables_in_executing_piece: |
|
674 | try: | |
675 | lvals_list.append(tpl_name_val % (var.name, repr(var.value))) |
|
675 | # we likely want to fix stackdata at some point, but | |
|
676 | # still need a workaround. | |||
|
677 | fibp = frame_info.variables_in_executing_piece | |||
|
678 | for var in fibp: | |||
|
679 | lvals_list.append(tpl_name_val % (var.name, repr(var.value))) | |||
|
680 | except Exception: | |||
|
681 | lvals_list.append( | |||
|
682 | "Exception trying to inspect frame. No more locals available." | |||
|
683 | ) | |||
676 | if lvals_list: |
|
684 | if lvals_list: | |
677 | lvals = '%s%s' % (indent, em_normal.join(lvals_list)) |
|
685 | lvals = '%s%s' % (indent, em_normal.join(lvals_list)) | |
678 |
|
686 |
General Comments 0
You need to be logged in to leave comments.
Login now