asyncio.CancelledError is a subclass of BaseException since 3.8

This commit is contained in:
Devaev Maxim
2020-03-16 02:32:19 +03:00
parent 5b58af4d6f
commit 966267ebb9
6 changed files with 0 additions and 24 deletions

View File

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