Load the ASGI application.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected