Update normal_chat.py

pull/978/head
SengokuCola 2025-05-17 12:26:10 +08:00
parent 8f7a8e6c22
commit 44266833e2
1 changed files with 4 additions and 3 deletions

View File

@ -201,9 +201,10 @@ class NormalChat:
break
# 获取待处理消息列表
items_to_process = list(self.interest_dict.items())
if not items_to_process:
continue
if self.interest_dict:
items_to_process = list(self.interest_dict.items())
if not items_to_process:
continue
# 处理每条兴趣消息
for msg_id, (message, interest_value, is_mentioned) in items_to_process: