MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / ExceptionWrapper

Class ExceptionWrapper

lib/utils/data/dataloader.py:25–30  ·  view source on GitHub ↗

r"Wraps an exception plus traceback to communicate across threads

Source from the content-addressed store, hash-verified

23
24
25class ExceptionWrapper(object):
26 r"Wraps an exception plus traceback to communicate across threads"
27
28 def __init__(self, exc_info):
29 self.exc_type = exc_info[0]
30 self.exc_msg = "".join(traceback.format_exception(*exc_info))
31
32
33_use_shared_memory = False

Callers 2

_worker_loopFunction · 0.85
_worker_manager_loopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected