diff options
Diffstat (limited to 'kvmd/plugins/auth')
-rw-r--r-- | kvmd/plugins/auth/http.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/plugins/auth/http.py b/kvmd/plugins/auth/http.py index 85156a1a..bc391d79 100644 --- a/kvmd/plugins/auth/http.py +++ b/kvmd/plugins/auth/http.py @@ -20,6 +20,8 @@ # ========================================================================== # +import asyncio + from typing import Dict from typing import Optional @@ -86,6 +88,8 @@ class Plugin(BaseAuthService): response.raise_for_status() assert response.status == 200 return True + except asyncio.CancelledError: # pylint: disable=try-except-raise + raise except Exception: get_logger().exception("Failed HTTP auth request for user %r", user) return False |