mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
asyncio.CancelledError is a subclass of BaseException since 3.8
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user