diff options
author | Devaev Maxim <[email protected]> | 2019-06-08 04:15:20 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-06-08 04:15:20 +0300 |
commit | 77a749873119252dec64245e3a3de9c08bd6cd2f (patch) | |
tree | ec46a3b2c0202626e2d0d10291271b2eddd5ee9f /kvmd/plugins | |
parent | 445f2f9e63fb71cd6f9d721817a1d72dc761ff35 (diff) |
process CancelledError
Diffstat (limited to 'kvmd/plugins')
-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 |