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

Method __init__

celery/exceptions.py:164–175  ·  view source on GitHub ↗
(self, message=None, exc=None, when=None, is_eager=False,
                 sig=None, **kwargs)

Source from the content-addressed store, hash-verified

162 when = None
163
164 def __init__(self, message=None, exc=None, when=None, is_eager=False,
165 sig=None, **kwargs):
166 from kombu.utils.encoding import safe_repr
167 self.message = message
168 if isinstance(exc, str):
169 self.exc, self.excs = None, exc
170 else:
171 self.exc, self.excs = get_pickleable_exception(exc), safe_repr(exc) if exc else None
172 self.when = when
173 self.is_eager = is_eager
174 self.sig = sig
175 super().__init__(self, exc, when, **kwargs)
176
177 def humanize(self):
178 if isinstance(self.when, numbers.Number):

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

get_pickleable_exceptionFunction · 0.90

Tested by

no test coverage detected