(self, foo, bar=None)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected