Skip to content

Commit 069a362

Browse files
committed
fix(context): log warning when platform not found for session
1 parent c81ef26 commit 069a362

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

astrbot/core/star/context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ async def send_message(
457457
if platform.meta().id == session.platform_name:
458458
await platform.send_by_session(session, message_chain)
459459
return True
460+
logger.warning(f"cannot find platform for session {session.platform_name}, message not sent")
460461
return False
461462

462463
def add_llm_tools(self, *tools: FunctionTool) -> None:

0 commit comments

Comments
 (0)