fix: 补充None值判断

This commit is contained in:
Sakura-RanChen
2025-07-24 15:07:35 +08:00
parent 66f4ea0a84
commit 2f5e8c2019
+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,