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

Method __init__

t/integration/tasks.py:443–451  ·  view source on GitHub ↗
(self, foo, bar=None)

Source from the content-addressed store, hash-verified

441 """Exception that doesn't survive a pickling roundtrip (dump + load)."""
442
443 def __init__(self, foo, bar=None):
444 if bar is None:
445 # We define bar with a default value in the signature so that
446 # it's easier to add a break point here to find out when the
447 # exception is being unpickled.
448 raise TypeError("bar must be provided")
449
450 super().__init__(foo)
451 self.bar = bar
452
453
454@shared_task

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected