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

Class DirtyAppError

gunicorn/dirty/errors.py:112–126  ·  view source on GitHub ↗

Raised when a dirty app encounters an error during execution.

Source from the content-addressed store, hash-verified

110
111
112class DirtyAppError(DirtyError):
113 """Raised when a dirty app encounters an error during execution."""
114
115 def __init__(self, message, app_path=None, action=None, traceback=None):
116 details = {}
117 if app_path:
118 details["app_path"] = app_path
119 if action:
120 details["action"] = action
121 if traceback:
122 details["traceback"] = traceback
123 super().__init__(message, details)
124 self.app_path = app_path
125 self.action = action
126 self.traceback = traceback
127
128
129class DirtyAppNotFoundError(DirtyAppError):

Callers 7

test_dirty_app_errorMethod · 0.90
parse_dirty_app_specFunction · 0.85
load_dirty_appFunction · 0.85
handle_requestMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_dirty_app_errorMethod · 0.72