(e, dumps)
| 113 | |
| 114 | |
| 115 | def pack_exception(e, dumps): |
| 116 | exc_type, exc_value, exc_traceback = sys.exc_info() |
| 117 | tb = _pack_traceback(exc_traceback) |
| 118 | try: |
| 119 | result = dumps((e, tb)) |
| 120 | except Exception as e: |
| 121 | exc_type, exc_value, exc_traceback = sys.exc_info() |
| 122 | tb = _pack_traceback(exc_traceback) |
| 123 | result = dumps((e, tb)) |
| 124 | return result |
| 125 | |
| 126 | |
| 127 | _CONTEXT_UNSUPPORTED = """\ |
nothing calls this directly
no test coverage detected