Show More
@@ -639,8 +639,9 b' class ListTB(TBTools):' | |||
|
639 | 639 | evalue : object |
|
640 | 640 | Data stored in the exception |
|
641 | 641 | |
|
642 |
etb : |
|
|
643 | Traceback of the exception. | |
|
642 | etb : object | |
|
643 | If list: List of frames, see class docstring for details. | |
|
644 | If Traceback: Traceback of the exception. | |
|
644 | 645 | |
|
645 | 646 | tb_offset : int, optional |
|
646 | 647 | Number of frames in the traceback to skip. If not given, the |
@@ -653,10 +654,13 b' class ListTB(TBTools):' | |||
|
653 | 654 | ------- |
|
654 | 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 | 659 | if isinstance(etb, tuple): |
|
657 | 660 | etb, chained_exc_ids = etb |
|
658 | 661 | else: |
|
659 | 662 | chained_exc_ids = set() |
|
663 | ||
|
660 | 664 | if isinstance(etb, list): |
|
661 | 665 | elist = etb |
|
662 | 666 | elif etb is not None: |
General Comments 0
You need to be logged in to leave comments.
Login now