fix: Ruff

pull/1002/head
墨梓柒 2025-05-29 09:27:06 +08:00
parent 3cf7776966
commit 22b579be02
No known key found for this signature in database
GPG Key ID: 4A65B9DBA35F7635
1 changed files with 2 additions and 2 deletions

View File

@ -457,7 +457,7 @@ async def build_anonymous_messages(messages: List[Dict[str, Any]]) -> str:
return "SELF" return "SELF"
try: try:
person_id = person_info_manager.get_person_id(platform, user_id) person_id = person_info_manager.get_person_id(platform, user_id)
except Exception as e: except Exception as _e:
person_id = None person_id = None
if not person_id: if not person_id:
return "?" return "?"
@ -472,7 +472,7 @@ async def build_anonymous_messages(messages: List[Dict[str, Any]]) -> str:
# user_info = msg.get("user_info", {}) # user_info = msg.get("user_info", {})
platform = msg.get("chat_info_platform") platform = msg.get("chat_info_platform")
user_id = msg.get("user_id") user_id = msg.get("user_id")
timestamp = msg.get("time") _timestamp = msg.get("time")
# print(f"msg:{msg}") # print(f"msg:{msg}")
# print(f"platform:{platform}") # print(f"platform:{platform}")
# print(f"user_id:{user_id}") # print(f"user_id:{user_id}")