From 361f42f27d02ca6f1f5354bae99371b7ed9a4137 Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Wed, 29 Apr 2026 07:19:15 +0800 Subject: [PATCH] fix: add exc_info to agent error log for debugging NoneType += str --- .../pipeline/process_stage/method/agent_sub_stages/internal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/pipeline/process_stage/method/agent_sub_stages/internal.py b/astrbot/core/pipeline/process_stage/method/agent_sub_stages/internal.py index c1d882656..5c21cf22b 100644 --- a/astrbot/core/pipeline/process_stage/method/agent_sub_stages/internal.py +++ b/astrbot/core/pipeline/process_stage/method/agent_sub_stages/internal.py @@ -395,7 +395,7 @@ class InternalAgentSubStage(Stage): unregister_active_runner(event.unified_msg_origin, agent_runner) except Exception as e: - logger.error(f"Error occurred while processing agent: {e}") + logger.error(f"Error occurred while processing agent: {e}", exc_info=True) custom_error_message = extract_persona_custom_error_message_from_event( event )