This commit is contained in:
Adam Hopkins
2021-02-08 14:09:41 +02:00
parent 64f0496d9e
commit 5f17e9591b
5 changed files with 16 additions and 14 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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