From dbd2c658e500768d28e488930679f26bceeb3bff Mon Sep 17 00:00:00 2001 From: robinsxe Date: Tue, 24 Mar 2026 20:18:30 +0100 Subject: [PATCH] Update tradingagents/graph/portfolio_analysis.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- tradingagents/graph/portfolio_analysis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tradingagents/graph/portfolio_analysis.py b/tradingagents/graph/portfolio_analysis.py index 15fe03cb..f3f2d2d2 100644 --- a/tradingagents/graph/portfolio_analysis.py +++ b/tradingagents/graph/portfolio_analysis.py @@ -125,8 +125,9 @@ class PortfolioAnalyzer: try: return self.deep_thinking_llm.invoke(messages).content except Exception as e: + import traceback return ( - f"Portfolio summary generation failed: {e}\n" + f"Portfolio summary generation failed: {e}\n{traceback.format_exc()}\n" f"Individual signals were: " + ", ".join(f"{t}: {r['signal']}" for t, r in individual_results.items()) )