##// END OF EJS Templates
Update docstring
Quentin Peter -
Show More
@@ -639,8 +639,9 b' class ListTB(TBTools):'
639 evalue : object
639 evalue : object
640 Data stored in the exception
640 Data stored in the exception
641
641
642 etb : traceback
642 etb : object
643 Traceback of the exception.
643 If list: List of frames, see class docstring for details.
644 If Traceback: Traceback of the exception.
644
645
645 tb_offset : int, optional
646 tb_offset : int, optional
646 Number of frames in the traceback to skip. If not given, the
647 Number of frames in the traceback to skip. If not given, the
@@ -653,10 +654,13 b' class ListTB(TBTools):'
653 -------
654 -------
654 String with formatted exception.
655 String with formatted exception.
655 """
656 """
657 # This is a workaround to get chained_exc_ids in recursive calls
658 # etb should not be a tuple if structured_traceback is not recursive
656 if isinstance(etb, tuple):
659 if isinstance(etb, tuple):
657 etb, chained_exc_ids = etb
660 etb, chained_exc_ids = etb
658 else:
661 else:
659 chained_exc_ids = set()
662 chained_exc_ids = set()
663
660 if isinstance(etb, list):
664 if isinstance(etb, list):
661 elist = etb
665 elist = etb
662 elif etb is not None:
666 elif etb is not None:
General Comments 0
You need to be logged in to leave comments. Login now