asyncio: re-raise CancelledError in wait_for_task()
This commit is contained in:
@@ -80,6 +80,7 @@ class TaskManager:
|
||||
logger.warning(f"{name}: timed out waiting for task to finish")
|
||||
except asyncio.CancelledError:
|
||||
logger.trace(f"{name}: unexpected task cancellation (maybe Ctrl-C?)")
|
||||
raise
|
||||
except Exception as e:
|
||||
logger.exception(f"{name}: unexpected exception while stopping task: {e}")
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user