Address code review: add debug logging for unknown method resolution
Co-authored-by: aguzererler <6199053+aguzererler@users.noreply.github.com> Agent-Logs-Url: https://github.com/aguzererler/TradingAgents/sessions/bb80e772-3e03-420e-bb0e-76cfdde14a04
This commit is contained in:
parent
92ebc13ce4
commit
c4a7108a76
|
|
@ -106,6 +106,12 @@ def _resolve_vendor(config: dict, method: str) -> str:
|
|||
try:
|
||||
category = get_category_for_method(method)
|
||||
except ValueError:
|
||||
# Method not in any category — may be a new/unknown method.
|
||||
# Return "unknown" so estimation can continue gracefully.
|
||||
import logging
|
||||
logging.getLogger(__name__).debug(
|
||||
"Method %r not found in TOOLS_CATEGORIES — skipping vendor resolution", method
|
||||
)
|
||||
return "unknown"
|
||||
return config.get("data_vendors", {}).get(category, "yfinance")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue