(self)
| 568 | self._traceback = value |
| 569 | |
| 570 | def __repr__(self) -> str: |
| 571 | if self._excinfo is None: |
| 572 | return "<ExceptionInfo for raises contextmanager>" |
| 573 | return "<{} {} tblen={}>".format( |
| 574 | self.__class__.__name__, saferepr(self._excinfo[1]), len(self.traceback) |
| 575 | ) |
| 576 | |
| 577 | def exconly(self, tryshort: bool = False) -> str: |
| 578 | """Return the exception as a string. |