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> |
||
|---|---|---|
| .. | ||
| cassettes | ||
| cli | ||
| e2e | ||
| integration | ||
| portfolio | ||
| unit | ||
| __init__.py | ||
| conftest.py | ||
| test_ticker_symbol_handling.py | ||