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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user