| 61 | return self.tb |
| 62 | |
| 63 | class ExceptionWithTraceback: |
| 64 | def __init__(self, exc, tb): |
| 65 | tb = traceback.format_exception(type(exc), exc, tb) |
| 66 | tb = ''.join(tb) |
| 67 | self.exc = exc |
| 68 | self.tb = '\n"""\n%s"""' % tb |
| 69 | def __reduce__(self): |
| 70 | return rebuild_exc, (self.exc, self.tb) |
| 71 | |
| 72 | def rebuild_exc(exc, tb): |
| 73 | exc.__cause__ = RemoteTraceback(tb) |
no outgoing calls
no test coverage detected
searching dependent graphs…