Merge pull request #1909 from xinnan-tech/py_fix_emoji

fix: 补充None值判断
This commit is contained in:
CGD
2025-07-24 15:09:14 +08:00
committed by GitHub
+1 -1
View File
@@ -746,7 +746,7 @@ class ConnectionHandler:
content = response
# 在llm回复中获取情绪表情,一轮对话只在开头获取一次
if emotion_flag and content.strip():
if emotion_flag and content is not None and content.strip():
asyncio.run_coroutine_threadsafe(
textUtils.get_emotion(self, content),
self.loop,