diff options
author | Devaev Maxim <[email protected]> | 2020-03-16 02:32:19 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-03-16 02:42:23 +0300 |
commit | 966267ebb9a89e1898c6009c7e85e5f837109aef (patch) | |
tree | 0b246895685545393352e5d821363883d099c560 /kvmd/plugins/auth/http.py | |
parent | 5b58af4d6f433fcbf16e967404a5cd85a85eefba (diff) |
asyncio.CancelledError is a subclass of BaseException since 3.8
Diffstat (limited to 'kvmd/plugins/auth/http.py')
-rw-r--r-- | kvmd/plugins/auth/http.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kvmd/plugins/auth/http.py b/kvmd/plugins/auth/http.py index a79e327d..7e8d6c1e 100644 --- a/kvmd/plugins/auth/http.py +++ b/kvmd/plugins/auth/http.py @@ -20,8 +20,6 @@ # ========================================================================== # -import asyncio - from typing import Dict from typing import Optional @@ -92,8 +90,6 @@ 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 |