Show More
@@ -681,15 +681,18 b' class ListTB(TBTools):' | |||
|
681 | 681 | exception = self.get_parts_of_chained_exception(evalue) |
|
682 | 682 | |
|
683 | 683 | if exception and not id(exception[1]) in chained_exc_ids: |
|
684 | chained_exception_message = self.prepare_chained_exception_message( | |
|
685 | evalue.__cause__)[0] | |
|
684 | 686 | etype, evalue, etb = exception |
|
685 |
|
|
|
687 | # Trace exception to avoid infinite 'cause' loop | |
|
688 | chained_exc_ids.add(id(exception[1])) | |
|
686 | 689 | chained_exceptions_tb_offset = 0 |
|
687 |
out_list = ( |
|
|
688 | etype, evalue, (etb, chained_exc_ids), | |
|
689 | chained_exceptions_tb_offset, context) | |
|
690 |
|
|
|
691 | evalue.__cause__)[0] | |
|
692 |
|
|
|
690 | out_list = ( | |
|
691 | self.structured_traceback( | |
|
692 | etype, evalue, (etb, chained_exc_ids), | |
|
693 | chained_exceptions_tb_offset, context) | |
|
694 | + chained_exception_message | |
|
695 | + out_list) | |
|
693 | 696 | |
|
694 | 697 | return out_list |
|
695 | 698 |
General Comments 0
You need to be logged in to leave comments.
Login now