fix: Ruff

This commit is contained in:
墨梓柒
2025-04-26 18:40:37 +08:00
parent 9a38f3fc60
commit 293a03960a

View File

@@ -4,7 +4,7 @@ import datetime
# from .message_storage import MongoDBMessageStorage # from .message_storage import MongoDBMessageStorage
from src.plugins.utils.chat_message_builder import get_raw_msg_before_timestamp_with_chat from src.plugins.utils.chat_message_builder import get_raw_msg_before_timestamp_with_chat
from ...config.config import global_config # from ...config.config import global_config
from typing import Dict, Any from typing import Dict, Any
from ..chat.message import Message from ..chat.message import Message
from .pfc_types import ConversationState from .pfc_types import ConversationState
@@ -436,7 +436,7 @@ class Conversation:
try: try:
# 外层 try: 捕获发送消息和后续处理中的主要错误 # 外层 try: 捕获发送消息和后续处理中的主要错误
current_time = time.time() # 获取当前时间戳 _current_time = time.time() # 获取当前时间戳
reply_content = self.generated_reply # 获取要发送的内容 reply_content = self.generated_reply # 获取要发送的内容
# 发送消息 # 发送消息