worker
This commit is contained in:
@@ -32,7 +32,6 @@ class ExceptionMixin:
|
||||
if isinstance(exceptions[0], list):
|
||||
exceptions = tuple(*exceptions)
|
||||
|
||||
print(handler, exceptions)
|
||||
future_exception = FutureException(handler, exceptions)
|
||||
self._future_exceptions.add(future_exception)
|
||||
if apply:
|
||||
|
||||
@@ -42,12 +42,6 @@ class Router(BaseRouter):
|
||||
except RoutingNotFound as e:
|
||||
raise NotFound("Requested URL {} not found".format(e.path))
|
||||
except NoMethod as e:
|
||||
print(
|
||||
"Method {} not allowed for URL {}".format(
|
||||
request.method, request.path
|
||||
),
|
||||
e.allowed_methods,
|
||||
)
|
||||
raise MethodNotSupported(
|
||||
"Method {} not allowed for URL {}".format(
|
||||
request.method, request.path
|
||||
|
||||
@@ -137,7 +137,6 @@ class GunicornWorker(base.Worker):
|
||||
await _shutdown
|
||||
|
||||
async def _run(self):
|
||||
self.app.router.finalize()
|
||||
for sock in self.sockets:
|
||||
state = dict(requests_count=0)
|
||||
self._server_settings["host"] = None
|
||||
|
||||
Reference in New Issue
Block a user