MCPcopy Create free account
hub / github.com/celery/celery / __init__

Method __init__

celery/utils/serialization.py:130–139  ·  view source on GitHub ↗
(self, exc_module, exc_cls_name, exc_args, text=None)

Source from the content-addressed store, hash-verified

128 exc_args = None
129
130 def __init__(self, exc_module, exc_cls_name, exc_args, text=None):
131 safe_exc_args = ensure_serializable(
132 exc_args, lambda v: pickle.loads(pickle.dumps(v))
133 )
134 self.exc_module = exc_module
135 self.exc_cls_name = exc_cls_name
136 self.exc_args = safe_exc_args
137 self.text = text
138 super().__init__(exc_module, exc_cls_name, safe_exc_args,
139 text)
140
141 def restore(self):
142 return create_exception_cls(self.exc_cls_name,

Callers

nothing calls this directly

Calls 1

ensure_serializableFunction · 0.85

Tested by

no test coverage detected