fix: missing key access by adding existence check
This commit is contained in:
@@ -408,7 +408,7 @@ class LLMService(AIService):
|
|||||||
function_name: The name of the function handler to remove.
|
function_name: The name of the function handler to remove.
|
||||||
"""
|
"""
|
||||||
del self._functions[function_name]
|
del self._functions[function_name]
|
||||||
if self._start_callbacks[function_name]:
|
if function_name in self._start_callbacks:
|
||||||
del self._start_callbacks[function_name]
|
del self._start_callbacks[function_name]
|
||||||
|
|
||||||
def unregister_direct_function(self, handler: Any):
|
def unregister_direct_function(self, handler: Any):
|
||||||
|
|||||||
Reference in New Issue
Block a user