From 078d6485516a71924c05231c002fb13ffcbc25db Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Dec 2020 10:05:07 +0100 Subject: [PATCH] build(deps): bump uvicorn from 0.13.0 to 0.13.1 (#390) * build(deps): bump uvicorn from 0.13.0 to 0.13.1 Bumps [uvicorn](https://github.com/encode/uvicorn) from 0.13.0 to 0.13.1. - [Release notes](https://github.com/encode/uvicorn/releases) - [Changelog](https://github.com/encode/uvicorn/blob/master/CHANGELOG.md) - [Commits](https://github.com/encode/uvicorn/compare/0.13.0...0.13.1) Signed-off-by: dependabot[bot] * root: remove asgi workaround when websocket is closed during connect Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jens Langhammer --- Pipfile.lock | 6 +++--- authentik/root/asgi.py | 11 +---------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/Pipfile.lock b/Pipfile.lock index dd8002fd6..463db3958 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1093,11 +1093,11 @@ "standard" ], "hashes": [ - "sha256:28420526640d800aabe648038f8e2ea8ba2a8bdc363002eecd5dfc57a0f75ab7", - "sha256:5123606e0f1d15ffbe0f63161c5078f7c28f350c5eb102435671eae58046db0f" + "sha256:2a7b17f4d9848d6557ccc2274a5f7c97f1daf037d130a0c6918f67cd9bc8cdf5", + "sha256:6fcce74c00b77d4f4b3ed7ba1b2a370d27133bfdb46f835b7a76dfe0a8c110ae" ], "index": "pypi", - "version": "==0.13.0" + "version": "==0.13.1" }, "uvloop": { "hashes": [ diff --git a/authentik/root/asgi.py b/authentik/root/asgi.py index 93e9257b0..454daffba 100644 --- a/authentik/root/asgi.py +++ b/authentik/root/asgi.py @@ -105,16 +105,7 @@ class ASGILogger: # https://code.djangoproject.com/ticket/31508 # https://github.com/encode/uvicorn/issues/266 return - try: - await self.app(scope, receive, send_hooked) - except TypeError as exc: - # https://github.com/encode/uvicorn/issues/244 - if exc.args == ( - "An asyncio.Future, a coroutine or an awaitable is required", - ): - pass - else: - raise exc + await self.app(scope, receive, send_hooked) def _get_ip(self) -> str: client_ip = None