| 46 | raise self.ex |
| 47 | |
| 48 | class BrokenReprException(Exception): |
| 49 | __str__ = None # type: ignore[assignment] |
| 50 | __repr__ = None # type: ignore[assignment] |
| 51 | |
| 52 | assert "Exception" in saferepr(BrokenRepr(Exception("broken"))) |
| 53 | s = saferepr(BrokenReprException("really broken")) |
no outgoing calls