Show More
@@ -741,6 +741,7 b' class VerboseTB(TBTools):' | |||||
741 | This may be called multiple times by Python 3 exception chaining |
|
741 | This may be called multiple times by Python 3 exception chaining | |
742 | (PEP 3134). |
|
742 | (PEP 3134). | |
743 | """ |
|
743 | """ | |
|
744 | assert etb is not None | |||
744 | # some locals |
|
745 | # some locals | |
745 | orig_etype = etype |
|
746 | orig_etype = etype | |
746 | try: |
|
747 | try: | |
@@ -801,12 +802,13 b' class VerboseTB(TBTools):' | |||||
801 | after=after, |
|
802 | after=after, | |
802 | pygments_formatter=formatter, |
|
803 | pygments_formatter=formatter, | |
803 | ) |
|
804 | ) | |
|
805 | assert etb is not None | |||
804 | return list(stack_data.FrameInfo.stack_data(etb, options=options))[tb_offset:] |
|
806 | return list(stack_data.FrameInfo.stack_data(etb, options=options))[tb_offset:] | |
805 |
|
807 | |||
806 | def structured_traceback(self, etype, evalue, etb, tb_offset=None, |
|
808 | def structured_traceback(self, etype, evalue, etb, tb_offset=None, | |
807 | number_of_lines_of_context=5): |
|
809 | number_of_lines_of_context=5): | |
808 | """Return a nice text document describing the traceback.""" |
|
810 | """Return a nice text document describing the traceback.""" | |
809 |
|
811 | assert etb is not None | ||
810 | formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context, |
|
812 | formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context, | |
811 | tb_offset) |
|
813 | tb_offset) | |
812 |
|
814 |
General Comments 0
You need to be logged in to leave comments.
Login now