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

@@ -178,8 +178,6 @@ async def run_region_task(
async with region:
entered.set_result(None)
await method(*args, **kwargs)
except asyncio.CancelledError: # pylint: disable=try-except-raise
raise
except region.get_exc_type():
raise
except Exception: