TradingAgents/tradingagents/dataflows
ahmet guzererler 6fa4c2340a
Fix `ThirdPartyTimeoutError` swallowing in `yfinance` dataflows (#127)
In dataflow API wrappers, generic `except Exception` handlers were swallowing
timeout exceptions (like `requests.exceptions.Timeout` and `ThirdPartyTimeoutError`),
preventing upstream retry logic and proper error handling from functioning correctly.

This patch:
- Adds explicit catching of `requests.exceptions.Timeout` to raise as `ThirdPartyTimeoutError` in `yfinance` wrapper modules (`y_finance.py`, `yfinance_news.py`, `yfinance_scanner.py`).
- Adds explicit catching and re-raising of `ThirdPartyTimeoutError` before generic exception handlers across the dataflows.
- Retains existing exception inheritance logic to avoid backward compatibility breaks.
- Updates `TestEnsureIndexesInInit` to use the explicit `ensure_indexes()` call per lazy loading changes.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: aguzererler <6199053+aguzererler@users.noreply.github.com>
2026-03-27 00:20:10 +01:00
..
__init__.py WIP 2025-09-26 16:17:50 +08:00
alpha_vantage.py Refactor interface.py to remove unused imports in alpha_vantage.py 2026-03-21 08:27:10 +00:00
alpha_vantage_common.py fix: harden dataflows layer against silent failures and data corruption 2026-03-22 00:07:32 +01:00
alpha_vantage_fundamentals.py Add Alpha Vantage API integration as primary data provider 2025-09-26 22:57:50 +08:00
alpha_vantage_indicator.py Fix `ThirdPartyTimeoutError` swallowing in `yfinance` dataflows (#127) 2026-03-27 00:20:10 +01:00
alpha_vantage_news.py fix: improve data vendor implementations and tool signatures 2026-02-03 22:27:20 +00:00
alpha_vantage_scanner.py feat: Complete 3-phase LLM scanner pipeline with inline tool execution 2026-03-17 08:41:40 +01:00
alpha_vantage_stock.py Add Alpha Vantage API integration as primary data provider 2025-09-26 22:57:50 +08:00
config.py feat: add multi-provider LLM support with thinking configurations 2026-02-03 22:27:20 +00:00
finnhub.py feat: Finnhub integration layer, 141 tests, and vendor evaluation report (#16) 2026-03-18 11:28:43 +01:00
finnhub_common.py Resolve merge conflicts after PR #16 merge into main (#17) 2026-03-18 11:38:44 +01:00
finnhub_fundamentals.py Resolve merge conflicts after PR #16 merge into main (#17) 2026-03-18 11:38:44 +01:00
finnhub_indicators.py 🧹 Remove unused `timedelta` import in finnhub_indicators.py 2026-03-21 01:54:05 +00:00
finnhub_news.py Fix Finnhub API error handling and add coverage 2026-03-21 14:51:29 +00:00
finnhub_scanner.py 🧹 remove unused import _make_api_request from finnhub_scanner.py 2026-03-21 08:22:49 +00:00
finnhub_stock.py Remove unused pandas import and clean up finnhub_stock.py 2026-03-21 08:21:43 +00:00
interface.py fix: harden dataflows layer against silent failures and data corruption 2026-03-22 00:07:32 +01:00
macro_regime.py Merge pull request #54 from aguzererler/test-macro-regime-fmt-pct-18208719821293052000 2026-03-21 17:36:20 +01:00
peer_comparison.py feat: medium-term positioning upgrade (debate rounds, TTM, peer comparison, macro regime) (#14) 2026-03-17 22:27:40 +01:00
stockstats_utils.py merge: sync with upstream TauricResearch/TradingAgents v0.2.2 2026-03-23 12:17:25 +00:00
ttm_analysis.py Add financial tools analysis doc and fix YoY revenue growth bug in TTM analysis 2026-03-21 16:57:21 +00:00
utils.py chore: remove unused imports `os` and `json` from `tradingagents/dataflows/utils.py` 2026-03-21 01:34:15 +00:00
y_finance.py Fix `ThirdPartyTimeoutError` swallowing in `yfinance` dataflows (#127) 2026-03-27 00:20:10 +01:00
yfinance_news.py Fix `ThirdPartyTimeoutError` swallowing in `yfinance` dataflows (#127) 2026-03-27 00:20:10 +01:00
yfinance_scanner.py Fix `ThirdPartyTimeoutError` swallowing in `yfinance` dataflows (#127) 2026-03-27 00:20:10 +01:00