Fix test failures and formatting issues

- Fixed black formatting in exceptions.py
- Restored parse_wiki_response to original behavior (return input unchanged for non-dict)
- Enhanced validate_url to properly reject URLs with spaces
- Fixed 3 previously failing utility tests

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-30 21:07:29 -04:00
parent 6c578ac43e
commit 5201f6e558
2 changed files with 14 additions and 4 deletions

View File

@@ -63,7 +63,9 @@ class PermissionError(ClientError):
class RateLimitError(ClientError):
"""Raised when rate limit is exceeded (429)."""
def __init__(self, message: str, retry_after: Optional[int] = None, **kwargs: Any) -> None:
def __init__(
self, message: str, retry_after: Optional[int] = None, **kwargs: Any
) -> None:
# Remove status_code from kwargs if present to avoid duplicate argument
kwargs.pop("status_code", None)
super().__init__(message, status_code=429, **kwargs)