From 0f144f48cb140ffd08bf8de14c82edb8b0563b66 Mon Sep 17 00:00:00 2001 From: Om Chauhan Date: Sun, 28 Dec 2025 10:28:37 +0530 Subject: [PATCH] fix: missing key access by adding existence check --- src/pipecat/services/llm_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/services/llm_service.py b/src/pipecat/services/llm_service.py index 70164ebd8..45be7ee74 100644 --- a/src/pipecat/services/llm_service.py +++ b/src/pipecat/services/llm_service.py @@ -408,7 +408,7 @@ class LLMService(AIService): function_name: The name of the function handler to remove. """ del self._functions[function_name] - if self._start_callbacks[function_name]: + if function_name in self._start_callbacks: del self._start_callbacks[function_name] def unregister_direct_function(self, handler: Any):