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

Method load_wsgi

gunicorn/workers/gasgi.py:79–87  ·  view source on GitHub ↗

Load the ASGI application.

(self)

Source from the content-addressed store, hash-verified

77 asyncio.set_event_loop(self.loop)
78
79 def load_wsgi(self):
80 """Load the ASGI application."""
81 try:
82 self.asgi = self.app.wsgi()
83 except SyntaxError as e:
84 if not self.cfg.reload:
85 raise
86 self.log.exception(e)
87 self.asgi = self._make_error_app(str(e))
88
89 def _make_error_app(self, error_msg):
90 """Create an error ASGI app for syntax errors during reload."""

Callers

nothing calls this directly

Calls 3

_make_error_appMethod · 0.95
wsgiMethod · 0.45
exceptionMethod · 0.45

Tested by

no test coverage detected