fix: Resolve crashes and improve error handling in core tools#7
fix: Resolve crashes and improve error handling in core tools#7nkissick-del wants to merge 1 commit intojmagar:mainfrom
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
1 issue found across 4 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="unraid_mcp/tools/storage.py">
<violation number="1" location="unraid_mcp/tools/storage.py:85">
P2: Breaking change: renamed tool parameter from `type` to `notification_type` while docs still reference `type`, which will break existing callers using the old parameter name.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| offset: int, | ||
| limit: int, | ||
| importance: str | None = None | ||
| notification_type: str, offset: int, limit: int, importance: str | None = None |
There was a problem hiding this comment.
P2: Breaking change: renamed tool parameter from type to notification_type while docs still reference type, which will break existing callers using the old parameter name.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At unraid_mcp/tools/storage.py, line 85:
<comment>Breaking change: renamed tool parameter from `type` to `notification_type` while docs still reference `type`, which will break existing callers using the old parameter name.</comment>
<file context>
@@ -82,10 +82,7 @@ async def get_notifications_overview() -> dict[str, Any]:
- offset: int,
- limit: int,
- importance: str | None = None
+ notification_type: str, offset: int, limit: int, importance: str | None = None
) -> list[dict[str, Any]]:
"""Lists notifications with filtering. Type: UNREAD/ARCHIVE. Importance: INFO/WARNING/ALERT."""
</file context>
Overview
Resolves multiple runtime errors encountered during testing. These changes ensure the server handles unexpected empty values gracefully instead of crashing.
Fixes
attribute errorswhen CPU or Memory details are missing or malformed.Verification
Summary by cubic
Hardened core tools to handle missing or malformed API data without crashing and return clear, actionable errors. Improves health checks, RClone config handling, disk details, and system info stability.
Bug Fixes
Migration
Written for commit 01fb43a. Summary will update on new commits.