MCPcopy Create free account
hub / github.com/dask/dask / pack_exception

Function pack_exception

dask/multiprocessing.py:115–124  ·  view source on GitHub ↗
(e, dumps)

Source from the content-addressed store, hash-verified

113
114
115def 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 = """\

Callers

nothing calls this directly

Calls 1

_pack_tracebackFunction · 0.85

Tested by

no test coverage detected