From 699704732c2b0b2b01cfaa25ccd706c0f93908b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 24 Feb 2025 21:35:11 -0800 Subject: [PATCH] asyncio: re-raise CancelledError in wait_for_task() --- src/pipecat/utils/asyncio.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pipecat/utils/asyncio.py b/src/pipecat/utils/asyncio.py index ab40a8195..073ab0e50 100644 --- a/src/pipecat/utils/asyncio.py +++ b/src/pipecat/utils/asyncio.py @@ -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: