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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| alpha_vantage.py | ||
| alpha_vantage_common.py | ||
| alpha_vantage_fundamentals.py | ||
| alpha_vantage_indicator.py | ||
| alpha_vantage_news.py | ||
| alpha_vantage_scanner.py | ||
| alpha_vantage_stock.py | ||
| config.py | ||
| finnhub.py | ||
| finnhub_common.py | ||
| finnhub_fundamentals.py | ||
| finnhub_indicators.py | ||
| finnhub_news.py | ||
| finnhub_scanner.py | ||
| finnhub_stock.py | ||
| interface.py | ||
| macro_regime.py | ||
| peer_comparison.py | ||
| stockstats_utils.py | ||
| ttm_analysis.py | ||
| utils.py | ||
| y_finance.py | ||
| yfinance_news.py | ||
| yfinance_scanner.py | ||