8000 fix: handle unavailable news cache by dajiaohuang · Pull Request #8 · aahl/mcp-aktools · GitHub
[go: up one dir, main page]

Skip to content

fix: handle unavailable news cache - #8

Open
dajiaohuang wants to merge 1 commit into
aahl:mainfrom
dajiaohuang:fix/stock-news-cache-failure
Open

dajiaohuang wants to merge 1 commit into
aahl:mainfrom
dajiaohuang:fix/stock-news-cache-failure

Conversation

@dajiaohuang
Copy link
Copy Markdown

ak_cache returns None after a provider fetch fails, but stock_news immediately called to_dict on that result and raised AttributeError. Return a stable unavailable response for that failure and add a synthetic regression test with the cache mocked. Validation: the task-local unittest passed with provider dependencies stubbed; no stock/crypto/news API was called.

This branch has not been 6C4A deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0