MCPcopy
hub / github.com/benoitc/gunicorn / __init__

Method __init__

gunicorn/dirty/errors.py:101–109  ·  view source on GitHub ↗
(self, message, worker_id=None, traceback=None)

Source from the content-addressed store, hash-verified

99 """Raised when a dirty worker encounters an error."""
100
101 def __init__(self, message, worker_id=None, traceback=None):
102 details = {}
103 if worker_id is not None:
104 details["worker_id"] = worker_id
105 if traceback:
106 details["traceback"] = traceback
107 super().__init__(message, details)
108 self.worker_id = worker_id
109 self.traceback = traceback
110
111
112class DirtyAppError(DirtyError):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected