##// END OF EJS Templates
Avoid recursive loop
Quentin Peter -
Show More
@@ -653,7 +653,9 b' class ListTB(TBTools):'
653 653 -------
654 654 String with formatted exception.
655 655 """
656 # if chained_exc_ids is None:
656 if isinstance(etb, tuple):
657 etb, chained_exc_ids = etb
658 else:
657 659 chained_exc_ids = set()
658 660 if isinstance(etb, list):
659 661 elist = etb
@@ -683,7 +685,8 b' class ListTB(TBTools):'
683 685 chained_exc_ids.add(id(exception[1])) # trace exception to avoid infinite 'cause' loop
684 686 chained_exceptions_tb_offset = 0
685 687 out_list = (self.structured_traceback(
686 etype, evalue, etb, chained_exceptions_tb_offset, context)
688 etype, evalue, (etb, chained_exc_ids),
689 chained_exceptions_tb_offset, context)
687 690 + self.prepare_chained_exception_message(
688 691 evalue.__cause__)[0]
689 692 + out_list)
General Comments 0
You need to be logged in to leave comments. Login now